From 3db0777a936b722086f2e660c0a6b76ed1f9f0cc Mon Sep 17 00:00:00 2001 From: shoopea Date: Wed, 31 Jul 2019 14:47:21 +0800 Subject: [PATCH] panic in getLockedClient --- client.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index 6f67c09..55d58a9 100644 --- a/client.go +++ b/client.go @@ -23,9 +23,8 @@ func getLockedClient(id int64, createMissing bool) (*ChirpClient, bool) { return c, true } else { muxClients.RUnlock() - //c := new(ChirpClient) - //return c, false - return nil, false + c := new(ChirpClient) + return c, false } }