File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ import (
8
8
"github.com/shutter-network/rolling-shutter/rolling-shutter/keyperimpl/gnosis/database"
9
9
)
10
10
11
- // GnosisSyncState implements the BlockSyncState interface for the gnosis keyper
11
+ // GnosisSyncState implements the BlockSyncState interface for the gnosis keyper.
12
12
type GnosisSyncState struct {
13
13
DBPool * pgxpool.Pool
14
14
}
15
15
16
- // GetSyncedBlockNumber retrieves the current synced block number from transaction submitted events
16
+ // GetSyncedBlockNumber retrieves the current synced block number from transaction submitted events.
17
17
func (s * GnosisSyncState ) GetSyncedBlockNumber (ctx context.Context ) (int64 , error ) {
18
18
db := database .New (s .DBPool )
19
19
record , err := db .GetTransactionSubmittedEventsSyncedUntil (ctx )
Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ import (
8
8
"github.com/shutter-network/rolling-shutter/rolling-shutter/keyperimpl/shutterservice/database"
9
9
)
10
10
11
- // ShutterServiceSyncState implements the BlockSyncState interface for the shutter service
11
+ // ShutterServiceSyncState implements the BlockSyncState interface for the shutter service.
12
12
type ShutterServiceSyncState struct {
13
13
DBPool * pgxpool.Pool
14
14
}
15
15
16
- // GetSyncedBlockNumber retrieves the current synced block number from identity events
16
+ // GetSyncedBlockNumber retrieves the current synced block number from identity events.
17
17
func (s * ShutterServiceSyncState ) GetSyncedBlockNumber (ctx context.Context ) (int64 , error ) {
18
18
db := database .New (s .DBPool )
19
19
record , err := db .GetIdentityRegisteredEventsSyncedUntil (ctx )
Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ import (
15
15
)
16
16
17
17
// 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.
19
19
type BlockSyncState interface {
20
- // GetSyncedBlockNumber retrieves the current synced block number
20
+ // GetSyncedBlockNumber retrieves the current synced block number.
21
21
GetSyncedBlockNumber (ctx context.Context ) (int64 , error )
22
22
}
23
23
24
- // SyncMonitor monitors the sync state of the keyper
24
+ // SyncMonitor monitors the sync state of the keyper.
25
25
type SyncMonitor struct {
26
26
DBPool * pgxpool.Pool
27
27
CheckInterval time.Duration
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ import (
14
14
"github.com/shutter-network/rolling-shutter/rolling-shutter/medley/testsetup"
15
15
)
16
16
17
- // MockSyncState is a mock implementation of BlockSyncState for testing
17
+ // MockSyncState is a mock implementation of BlockSyncState for testing.
18
18
type MockSyncState struct {
19
19
blockNumber int64
20
20
err error
21
21
}
22
22
23
- func (m * MockSyncState ) GetSyncedBlockNumber (ctx context.Context ) (int64 , error ) {
23
+ func (m * MockSyncState ) GetSyncedBlockNumber (_ context.Context ) (int64 , error ) {
24
24
return m .blockNumber , m .err
25
25
}
26
26
You can’t perform that action at this time.
0 commit comments