fix 3 cases of shadowed variables (other than "err")

2 of these were actual bugs.
This commit is contained in:
Mechiel Lukkien
2023-02-16 13:24:51 +01:00
parent 5c33640aea
commit c65731ac56
3 changed files with 5 additions and 4 deletions

View File

@ -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
}
}