Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pauluswi authored Nov 16, 2024
1 parent ca721f0 commit 9cd50c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ This approach uses Golang's `sync.Mutex` to enforce mutual exclusion within a si
- Each transaction is processed in a separate goroutine using the go keyword.
- A ```sync.WaitGroup``` ensures the main function waits for all transactions to complete.
- The sync.Mutex ensures that only one goroutine can update an account's balance at a time.

- Simulates acquiring and releasing locks without connecting to a real Redis server.

```go
// Account represents a bank account
type Account struct {
Expand Down

0 comments on commit 9cd50c7

Please sign in to comment.