Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
sync task
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszos4chain committed Nov 10, 2023
1 parent d63c51d commit 60fd482
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,13 @@ func taskNotifyP2P(ctx context.Context, logClient zLogger.GormLoggerInterface, o
// taskSyncTransactions will sync any transactions
func taskSyncTransactions(ctx context.Context, logClient zLogger.GormLoggerInterface, opts ...ModelOps) error {

// logClient.Info(ctx, "running sync transaction(s) task...")
logClient.Info(ctx, "running sync transaction(s) task...")

// err := processSyncTransactions(ctx, 10, opts...)
// if err == nil || errors.Is(err, datastore.ErrNoResults) {
// return nil
// }
// return err
return nil
err := processSyncTransactions(ctx, 10, opts...)
if err == nil || errors.Is(err, datastore.ErrNoResults) {
return nil
}
return err
}

// taskCheckTransactions will check any transactions
Expand Down

0 comments on commit 60fd482

Please sign in to comment.