Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kbearXD committed Mar 27, 2024
1 parent 5539764 commit f42ef77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/strategy/dca2/background_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/c9s/bbgo/pkg/util"
)

func (s *Strategy) runBackgrounTask(ctx context.Context) {
func (s *Strategy) runBackgroundTask(ctx context.Context) {
s.logger.Info("run background task")

// recover active orders
Expand Down
2 changes: 1 addition & 1 deletion pkg/strategy/dca2/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ func (s *Strategy) Run(ctx context.Context, _ bbgo.OrderExecutor, session *bbgo.
})
})

go s.runBackgrounTask(ctx)
go s.runBackgroundTask(ctx)

bbgo.OnShutdown(ctx, func(ctx context.Context, wg *sync.WaitGroup) {
defer wg.Done()
Expand Down

0 comments on commit f42ef77

Please sign in to comment.