This commit is contained in:
parent
4cd928fdc6
commit
c3ad8d5d2d
@ -29,7 +29,7 @@ func NewRedisRouter(server *Identity, redisUrl string, password string, db int,
|
|||||||
r.InvitationTimeout = invitationTimeout
|
r.InvitationTimeout = invitationTimeout
|
||||||
r.Context = context.Background()
|
r.Context = context.Background()
|
||||||
// set start for uptime
|
// set start for uptime
|
||||||
err := r.Client.Set("statistics:start", time.Now(), 0).Err()
|
err := r.Client.Set("statistics:start", time.Now().Format(time.RFC3339), 0).Err()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user