File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
rolling-shutter/medley/syncmonitor Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ import (
1515)
1616
1717// BlockSyncState is an interface that different keyper implementations
18- // can implement to provide their own block sync state logic
18+ // can implement to provide their own block sync state logic.
1919type BlockSyncState interface {
20- // GetSyncedBlockNumber retrieves the current synced block number
20+ // GetSyncedBlockNumber retrieves the current synced block number.
2121 GetSyncedBlockNumber (ctx context.Context ) (int64 , error )
2222}
2323
24- // SyncMonitor monitors the sync state of the keyper
24+ // SyncMonitor monitors the sync state of the keyper.
2525type SyncMonitor struct {
2626 DBPool * pgxpool.Pool
2727 CheckInterval time.Duration
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ import (
1414 "github.com/shutter-network/rolling-shutter/rolling-shutter/medley/testsetup"
1515)
1616
17- // MockSyncState is a mock implementation of BlockSyncState for testing
17+ // MockSyncState is a mock implementation of BlockSyncState for testing.
1818type MockSyncState struct {
1919 blockNumber int64
2020 err error
2121}
2222
23- func (m * MockSyncState ) GetSyncedBlockNumber (ctx context.Context ) (int64 , error ) {
23+ func (m * MockSyncState ) GetSyncedBlockNumber (_ context.Context ) (int64 , error ) {
2424 return m .blockNumber , m .err
2525}
2626
You can’t perform that action at this time.
0 commit comments