Skip to content

Commit 40bf046

Browse files
author
ylembachar
committed
format code
1 parent b86a8e0 commit 40bf046

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

rolling-shutter/keyperimpl/gnosis/syncmonitor.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package gnosis
22

33
import (
44
"context"
5-
"github.com/jackc/pgx/v4"
65
"time"
76

7+
"github.com/jackc/pgx/v4"
88
"github.com/jackc/pgx/v4/pgxpool"
99
"github.com/pkg/errors"
1010
"github.com/rs/zerolog/log"
@@ -36,7 +36,6 @@ func (s *SyncMonitor) runMonitor(ctx context.Context) error {
3636
select {
3737
case <-time.After(s.CheckInterval):
3838
record, err := db.GetTransactionSubmittedEventsSyncedUntil(ctx)
39-
4039
if err != nil {
4140
if errors.Is(err, pgx.ErrNoRows) {
4241
log.Warn().Err(err).Msg("no rows found in table transaction_submitted_events_synced_until")
@@ -62,4 +61,4 @@ func (s *SyncMonitor) runMonitor(ctx context.Context) error {
6261
return ctx.Err()
6362
}
6463
}
65-
}
64+
}

rolling-shutter/keyperimpl/gnosis/syncmonitor_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ package gnosis_test
22

33
import (
44
"context"
5-
"github.com/shutter-network/rolling-shutter/rolling-shutter/keyperimpl/gnosis/database"
65
"testing"
76
"time"
87

98
"gotest.tools/assert"
109

1110
"github.com/shutter-network/rolling-shutter/rolling-shutter/keyperimpl/gnosis"
11+
"github.com/shutter-network/rolling-shutter/rolling-shutter/keyperimpl/gnosis/database"
1212
"github.com/shutter-network/rolling-shutter/rolling-shutter/medley/service"
1313
"github.com/shutter-network/rolling-shutter/rolling-shutter/medley/testsetup"
1414
)
@@ -143,4 +143,4 @@ func TestSyncMonitor_ContinuesWhenNoRows(t *testing.T) {
143143
t.Fatalf("expected monitor to continue without error, but got: %v", err)
144144
case <-time.After(1 * time.Second):
145145
}
146-
}
146+
}

0 commit comments

Comments
 (0)