Skip to content

Commit

Permalink
fix: concurrent map writes
Browse files Browse the repository at this point in the history
  • Loading branch information
huangnauh committed Jan 16, 2024
1 parent 128a31d commit 7284a0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configuration/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ func (c *client) DeleteParser(transactionID string) error {
if !ok {
return NewConfError(ErrTransactionDoesNotExist, transactionID)
}
c.clientMu.Lock()
delete(c.parsers, transactionID)
c.clientMu.Unlock()
return nil
}

Expand Down

0 comments on commit 7284a0c

Please sign in to comment.