all repos — honk @ 93f3c8f469dd4d696024a37c877fb29290cb3120

my fork of honk

consume activities in a goroutine other than the web handler
Ted Unangst tedu@tedunangst.com
Tue, 21 May 2019 18:51:04 -0400
commit

93f3c8f469dd4d696024a37c877fb29290cb3120

parent

e86a497081d41ff952ffcbd6527761d27e21b0b2

2 files changed, 8 insertions(+), 4 deletions(-)

jump to
M activity.goactivity.go

@@ -429,6 +429,13 @@ }

return a } +func consumeactivity(user *WhatAbout, j interface{}, origin string) { + xonk := xonkxonk(user, j, origin) + if xonk != nil { + savexonk(user, xonk) + } +} + func xonkxonk(user *WhatAbout, item interface{}, origin string) *Honk { depth := 0 maxdepth := 4
M honk.gohonk.go

@@ -358,10 +358,7 @@ log.Printf("unknown undo: %s", what)

} } default: - xonk := xonkxonk(user, j, origin) - if xonk != nil { - savexonk(user, xonk) - } + go consumeactivity(user, j, origin) } }