temporary remove invitation expiry
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ycc 2023-12-31 20:22:56 +01:00
parent 04e81fcef1
commit 7a6c1cd085
2 changed files with 3 additions and 3 deletions

View File

@ -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()
}

View File

@ -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