invitation bytearray copy debug #1
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ycc
2023-12-31 23:28:10 +01:00
parent 6511ff6280
commit 289e39c677
3 changed files with 8 additions and 9 deletions

View File

@ -2,7 +2,6 @@ package server
import (
"errors"
"fmt"
"math/rand"
"time"
@ -18,11 +17,6 @@ func (r *RedisRouter) CreateInvitation(invitation []byte, timeout int, password
if len(password) > 0 {
r.Client.Set("mwpw:"+id, password, 0) //, time.Duration(timeout*1000000))
}
mwiv, err := r.Client.Get("mwiv:" + id).Result()
if err != nil {
fmt.Println(err)
}
fmt.Println(len([]byte(mwiv)), len(invitation))
return id, time.Now().Add(time.Duration(timeout * 1000000)).UTC()
}