Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
secmask committed Feb 28, 2024
1 parent 914311a commit d695235
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/bsync/bsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type LocalReader[T any] interface {
Get() (T, time.Time)
}

// Worker support for background sync local state
// Worker support for background sync local state.
type Worker[T any] struct {
interval time.Duration
stop chan struct{}
Expand Down
5 changes: 3 additions & 2 deletions pkg/bsync/bsync_worker_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package bsync
package bsync_test

import (
"github.com/KyberNetwork/tradinglib/pkg/bsync"

Check failure on line 4 in pkg/bsync/bsync_worker_test.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

File is not `gci`-ed with --skip-generated -s standard -s default (gci)
"testing"
"time"

Check failure on line 6 in pkg/bsync/bsync_worker_test.go

View workflow job for this annotation

GitHub Actions / Run golangci-lint

File is not `gci`-ed with --skip-generated -s standard -s default (gci)
)

func TestWorker(t *testing.T) {
v := 0
w := New(time.Millisecond, func() (int, error) {
w := bsync.New(time.Millisecond, func() (int, error) {
v++
return v, nil
})
Expand Down

0 comments on commit d695235

Please sign in to comment.