mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 22:54:38 +03:00
fix 3 cases of shadowed variables (other than "err")
2 of these were actual bugs.
This commit is contained in:
@ -149,7 +149,7 @@ func accountHandle(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
flusher.Flush()
|
||||
|
||||
ctx := r.Context()
|
||||
cctx := r.Context()
|
||||
for {
|
||||
select {
|
||||
case e := <-l.Events:
|
||||
@ -159,7 +159,7 @@ func accountHandle(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
case <-ctx.Done():
|
||||
case <-cctx.Done():
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user