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