From 80752d222516ae297b9603dcdc76383ffcbb151b Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 16 Jan 2020 15:36:06 +0800 Subject: [PATCH] test --- client.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index 3d95cc0..a3100e5 100644 --- a/client.go +++ b/client.go @@ -57,8 +57,9 @@ func getLockedRandomClient() (*ChirpClient, error) { func setClientBusy(userID64 int64, from time.Time, duration time.Duration) error { if clt, ok := getLockedClient(userID64, false); ok { t := time.Now().UTC() - log.Printf("setClientBusy[%s] : now %s.\n", clt.Login, t.Format(timeFmt)) - log.Printf("setClientBusy[%s] : from %s.\n", clt.Login, t.UTC().Format(timeFmt)) + log.Printf("setClientBusy[%s] : now %s.\n", clt.Login, t.UTC().Format(timeFmt)) + log.Printf("setClientBusy[%s] : from %s.\n", clt.Login, from.UTC().Format(timeFmt)) + log.Printf("setClientBusy[%s] : for %s.\n", clt.Login, duration.String()) log.Printf("setClientBusy[%s] : until %s.\n", clt.Login, from.UTC().Add(duration).Format(timeFmt)) if from.UTC().Add(duration).After(time.Now().UTC()) { clt.CWIdle = false