From 5f5e4d7c5c221ee536eef4bce73b3167eb6866f2 Mon Sep 17 00:00:00 2001 From: Piotr Macek <4007944+piotrm50@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:49:20 +0100 Subject: [PATCH] fix linter --- components/faucet/component.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/components/faucet/component.go b/components/faucet/component.go index b80706c..a4869bc 100644 --- a/components/faucet/component.go +++ b/components/faucet/component.go @@ -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) }