Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Manan007224 committed Jul 8, 2021
1 parent 723770e commit aaa1229
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions schema_fingerprint_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ func (sf *SchemaFingerPrintVerifier) PeriodicallyVerifySchemaFingerprints(ctx co
sf.logger.Info("starting periodic schema fingerprint verification")
ticker := time.NewTicker(sf.PeriodicallyVerifyInterval)

defer ticker.Stop()

for {
select {
case <-ticker.C:
Expand All @@ -37,6 +39,7 @@ func (sf *SchemaFingerPrintVerifier) PeriodicallyVerifySchemaFingerprints(ctx co
}
case <-ctx.Done():
sf.logger.Info("shutdown periodic schema_fingerprint verification")
return
}
}
}
Expand Down

0 comments on commit aaa1229

Please sign in to comment.