Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrm50 committed Dec 1, 2023
1 parent da66dac commit 5f5e4d7
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions components/faucet/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,17 +309,19 @@ func run() error {
consumedOutputs[output.OutputID] = types.Void
}

// TODO: replace this workaround for slow reading with a proper solution
go deps.Faucet.ApplyAcceptedTransaction(createdOutputs, consumedOutputs)
// replace this workaround for slow reading with a proper solution
go func() {
_ = deps.Faucet.ApplyAcceptedTransaction(createdOutputs, consumedOutputs)
}()

return nil

//err := deps.Faucet.ApplyAcceptedTransaction(createdOutputs, consumedOutputs)
//if err != nil {
// err := deps.Faucet.ApplyAcceptedTransaction(createdOutputs, consumedOutputs)
// if err != nil {
// deps.ShutdownHandler.SelfShutdown(fmt.Sprintf("faucet plugin hit a critical error while applying new accepted transaction: %s", err.Error()), true)
//}
// }
//
//return err
// return err
}); err != nil {
deps.ShutdownHandler.SelfShutdown(fmt.Sprintf("Listening to AcceptedTransactions failed, error: %s", err), false)
}
Expand Down

0 comments on commit 5f5e4d7

Please sign in to comment.