Skip to content

Commit

Permalink
Comment out racy code (but logically correct)
Browse files Browse the repository at this point in the history
Signed-off-by: mudler <[email protected]>
  • Loading branch information
mudler committed Jul 17, 2024
1 parent 9650324 commit 62588f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/workers/workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ func updateRecords(node *masa.OracleNode, workEvent db.WorkEvent) {
logrus.Errorf("Failed to write data for CID %s: %v", workEvent.CID, err)
return
}
err = node.PubSubManager.Publish(config.TopicWithVersion(config.BlockTopic), workEvent.Payload)
if err != nil {
logrus.Errorf("Error publishing block: %v", err)
}
//err = node.PubSubManager.Publish(config.TopicWithVersion(config.BlockTopic), workEvent.Payload)
//if err != nil {
// logrus.Errorf("Error publishing block: %v", err)
//}
}

var nodeData pubsub.NodeData
Expand Down

0 comments on commit 62588f8

Please sign in to comment.