Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
Co-authored-by: Poorna <[email protected]>
  • Loading branch information
ramondeklein and poornas authored Dec 6, 2024
1 parent e7d6f6e commit 5209903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (b *Backend) setOffline() bool {
}

func (b *Backend) setOnline() bool {
return atomic.SwapInt32(&b.up, offline) != online
return atomic.SwapInt32(&b.up, online) != online
}

// Online returns true if backend is up
Expand Down

0 comments on commit 5209903

Please sign in to comment.