Skip to content

Commit

Permalink
accounts: fix service check in UpdateAccounts call
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeTsagk committed Oct 11, 2023
1 parent 8d7c53b commit 89a494d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accounts/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func (s *InterceptorService) UpdateAccount(accountID AccountID, accountBalance,

// As this function updates account balances, we require that the
// service is running before we execute it.
if s.isRunningUnsafe() {
if !s.isRunningUnsafe() {
// This case can only happen if the service is disabled while
// we we're processing a request.
return nil, ErrAccountServiceDisabled
Expand Down

0 comments on commit 89a494d

Please sign in to comment.