Use 32 character session_id to match Discord's session_id length
This commit is contained in:
parent
374a8695f7
commit
b2cff6d4c0
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ async fn handle_conn(peer: SocketAddr, stream: TcpStream, redis_client: Client,
|
|||
|
||||
let session_id: String = rand::thread_rng()
|
||||
.sample_iter(&Alphanumeric)
|
||||
.take(64)
|
||||
.take(32)
|
||||
.map(char::from)
|
||||
.collect();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue