Skip to content

Commit

Permalink
fixed build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mseltahir committed Mar 2, 2023
1 parent 2d33c9b commit 0d6565e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ func main() {
chat.ServeWs(hub, w, r)
})

// This is only for testing it's not used in production
mux.HandleFunc("/submitContacts", func(w http.ResponseWriter, r *http.Request) {
chat.SubmitContacts("0123456789", w, r)
chat.SubmitContacts("0123456789", "test.db", w, r)
})

log.Fatal(http.ListenAndServe(":6446", mux))
Expand Down

0 comments on commit 0d6565e

Please sign in to comment.