Skip to content

Commit

Permalink
BUG/MEDIUM: parser: fix: concurrent map writes
Browse files Browse the repository at this point in the history
  • Loading branch information
huangnauh authored and mjuraga committed Mar 26, 2024
1 parent bffd2e0 commit 8be02a7
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 8be02a7

Please sign in to comment.