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

Commit

Permalink
Fixed log statements sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
icellan committed Aug 1, 2022
1 parent da91777 commit 3de68ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitor_event_handler.go
Expand Up @@ -121,12 +121,12 @@ func (h *MonitorEventHandler) OnConnect(client *centrifuge.Client, e centrifuge.

// ProcessBlocks processes all transactions in blocks that have not yet been synced
func (h *MonitorEventHandler) ProcessBlocks(ctx context.Context, client *centrifuge.Client, blockChannel chan bool) error {
h.logger.Info(ctx, fmt.Sprintf("[MONITOR] ProcessBlocks start"))
h.logger.Info(ctx, "[MONITOR] ProcessBlocks start")
for {
// Check if channel has been closed
select {
case <-blockChannel:
h.logger.Info(ctx, fmt.Sprintf("[MONITOR] block sync channel closed, stopping ProcessBlocks"))
h.logger.Info(ctx, "[MONITOR] block sync channel closed, stopping ProcessBlocks")
return nil
default:
// get all block headers that have not been marked as synced
Expand Down

0 comments on commit 3de68ce

Please sign in to comment.