Skip to content

Commit

Permalink
fixup! handler: Fix data race in bodyReader when stopping upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut committed Oct 4, 2024
1 parent 148fa2f commit 6afee2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/handler/body_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (r *bodyReader) Read(b []byte) (int, error) {
return n, nil
}

func (r bodyReader) hasError() error {
func (r *bodyReader) hasError() error {
r.lock.RLock()
err := r.err
r.lock.RUnlock()
Expand Down

0 comments on commit 6afee2b

Please sign in to comment.