From d6952357e5087b79c44c56f67bca26c73c719058 Mon Sep 17 00:00:00 2001 From: GiangTran Date: Wed, 28 Feb 2024 14:16:22 +0700 Subject: [PATCH] fix lint --- pkg/bsync/bsync.go | 2 +- pkg/bsync/bsync_worker_test.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/bsync/bsync.go b/pkg/bsync/bsync.go index fb5d4eb..5499728 100644 --- a/pkg/bsync/bsync.go +++ b/pkg/bsync/bsync.go @@ -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{} diff --git a/pkg/bsync/bsync_worker_test.go b/pkg/bsync/bsync_worker_test.go index d2a128c..1d38629 100644 --- a/pkg/bsync/bsync_worker_test.go +++ b/pkg/bsync/bsync_worker_test.go @@ -1,13 +1,14 @@ -package bsync +package bsync_test import ( + "github.com/KyberNetwork/tradinglib/pkg/bsync" "testing" "time" ) 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 })