Skip to content

Commit

Permalink
Merge pull request #113 from iotaledger/chore/improve-locking
Browse files Browse the repository at this point in the history
Improve locking
  • Loading branch information
muXxer authored Dec 1, 2023
2 parents 16ace65 + 055635c commit c5d09c9
Show file tree
Hide file tree
Showing 4 changed files with 177 additions and 96 deletions.
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ linters-settings:
locale: US
staticcheck:
checks: ["all"]
nlreturn:
block-size: 3
stylecheck:
initialisms: ["ACL", "API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "QPS", "RAM", "RPC", "SLA", "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", "UDP", "UI", "GID", "UID", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", "XSS", "SIP", "RTP", "AMQP", "DB", "TS"]

Expand Down
2 changes: 1 addition & 1 deletion components/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var (
Name = "inx-faucet"

// Version of the app.
Version = "2.0.0-alpha.14"
Version = "2.0.0-alpha.15"
)

func App() *app.App {
Expand Down
7 changes: 2 additions & 5 deletions components/faucet/component.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,9 @@ func run() error {
consumedOutputs[output.OutputID] = types.Void
}

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)
}
deps.Faucet.ApplyAcceptedTransaction(createdOutputs, consumedOutputs)

return err
return nil
}); err != nil {
deps.ShutdownHandler.SelfShutdown(fmt.Sprintf("Listening to AcceptedTransactions failed, error: %s", err), false)
}
Expand Down
Loading

0 comments on commit c5d09c9

Please sign in to comment.