Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Jun 2, 2024
1 parent eadb6dc commit 5ffa984
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/stcrashreceiver/stcrashreceiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ func (r *crashReceiver) servePut(reportID string, w http.ResponseWriter, req *ht

if r.ignore.match(bs) {
r.ignoredMut.Lock()
if r.ignored == nil {
r.ignored = make(map[string]struct{})
}
r.ignored[reportID] = struct{}{}
r.ignoredMut.Unlock()
result = "ignored"
Expand Down

0 comments on commit 5ffa984

Please sign in to comment.