aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.go b/main.go
index 2c19a67..8c70976 100644
--- a/main.go
+++ b/main.go
@@ -99,11 +99,13 @@ func searchHandler(w http.ResponseWriter, r *http.Request) {
go func() {
for result := range resultsChan {
if len(result) > 0 {
- conn.Send(wrms.newPrivateEvent(searchId, "search", result))
+ // We can send the search results directly without going through the ordered channel
+ conn._sendEv(wrms.newPrivateEvent(searchId, "search", result))
}
}
- conn.Send(wrms.newPrivateEvent(searchId, "finish-search", nil))
+ // We can send the search results directly without going through the ordered channel
+ conn._sendEv(wrms.newPrivateEvent(searchId, "finish-search", nil))
llog.Debug("searching for %v took %v", searchQuery, time.Since(start))
}()