From 7a6c1cd08511dc56a7d70ea24218afbe74436f55 Mon Sep 17 00:00:00 2001 From: ycc Date: Sun, 31 Dec 2023 20:22:56 +0100 Subject: [PATCH] temporary remove invitation expiry --- server/invitation.go | 4 ++-- server/router.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/invitation.go b/server/invitation.go index a418d84..774e44d 100644 --- a/server/invitation.go +++ b/server/invitation.go @@ -13,9 +13,9 @@ func (r *RedisRouter) CreateInvitation(invitation []byte, timeout int, password if timeout > serverTimeout { timeout = serverTimeout } - r.Client.Set("mwiv:"+id, invitation, time.Duration(timeout*1000000)) + r.Client.Set("mwiv:"+id, invitation, 0) //, time.Duration(timeout*1000000)) if len(password) > 0 { - r.Client.Set("mwpw:"+id, password, time.Duration(timeout*1000000)) + r.Client.Set("mwpw:"+id, password, 0) //, time.Duration(timeout*1000000)) } return id, time.Now().Add(time.Duration(timeout * 1000000)).UTC() } diff --git a/server/router.go b/server/router.go index b98c92b..b31ff1f 100644 --- a/server/router.go +++ b/server/router.go @@ -136,7 +136,7 @@ func (r *RedisRouter) Route(msg *meowlib.ToServerMessage) (*meowlib.FromServerMe from_server.Invitation.Payload = []byte("invitation expired") } } else { - from_server.Invitation.Payload = invitation + from_server.Invitation.Payload = invitation // protobuf invitation } /* should not happen