should only try to get boxes where not already guessed

This commit is contained in:
Ted Unangst 2022-02-04 12:45:44 -05:00
parent 0fb7095475
commit e01a9caf4d
1 changed files with 9 additions and 5 deletions

View File

@ -1372,6 +1372,9 @@ func honkworldwide(user *WhatAbout, honk *Honk) {
} }
} }
for _, f := range getbacktracks(honk.XID) { for _, f := range getbacktracks(honk.XID) {
if f[0] == '%' {
rcpts[f] = true
} else {
var box *Box var box *Box
ok := boxofboxes.Get(f, &box) ok := boxofboxes.Get(f, &box)
if ok && box.Shared != "" { if ok && box.Shared != "" {
@ -1381,6 +1384,7 @@ func honkworldwide(user *WhatAbout, honk *Honk) {
} }
} }
} }
}
for a := range rcpts { for a := range rcpts {
go deliverate(0, user.ID, a, msg, doesitmatter(honk.What)) go deliverate(0, user.ID, a, msg, doesitmatter(honk.What))
} }