Pass along just the client id instead a reference to the entire client when unregistering the client
This commit is contained in:
@@ -25,7 +25,7 @@ func GetChatMessages(w http.ResponseWriter, r *http.Request) {
|
||||
messages := chat.GetChatHistory()
|
||||
|
||||
if err := json.NewEncoder(w).Encode(messages); err != nil {
|
||||
log.Errorln(err)
|
||||
log.Debugln(err)
|
||||
}
|
||||
default:
|
||||
w.WriteHeader(http.StatusNotImplemented)
|
||||
|
||||
Reference in New Issue
Block a user