mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:44:35 +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
|
||||
}
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ func importManage() {
|
||||
case e := <-importers.Events:
|
||||
s, ok := imports[e.Token]
|
||||
if !ok {
|
||||
s := state{
|
||||
s = state{
|
||||
MailboxCounts: map[string]int{},
|
||||
Listeners: map[*importListener]struct{}{},
|
||||
Cancel: e.Cancel,
|
||||
|
Reference in New Issue
Block a user