Make webhook calls async

This commit is contained in:
Chen-I Lim 2020-11-02 09:07:05 -08:00
parent ae1b23b022
commit 4ed2e02fef

View file

@ -44,7 +44,7 @@ func (a *App) InsertBlocks(blocks []model.Block) error {
return err return err
} }
a.webhook.NotifyUpdate(block) go a.webhook.NotifyUpdate(block)
} }
a.wsServer.BroadcastBlockChangeToWebsocketClients(blockIDsToNotify) a.wsServer.BroadcastBlockChangeToWebsocketClients(blockIDsToNotify)