Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

fix: ensure room_id scope#298

Merged
acgnhiki merged 1 commit intoacgnhiki:masterfrom
moushicheng:fix/room_id
Jun 3, 2025
Merged

fix: ensure room_id scope#298
acgnhiki merged 1 commit intoacgnhiki:masterfrom
moushicheng:fix/room_id

Conversation

@moushicheng
Copy link
Contributor

@moushicheng moushicheng commented Jan 10, 2025

Sometimes, the room_id exceeds the limit of 232. I originally intended to change the type of room_id, but since this type is already widely used throughout the system, it's difficult to modify. So, I changed it to 2100 to ensure that the room_id will never overflow.


有时,room_id会超出2^32的上限,我本想修改roomid的类型但是该类型已经在系统内大量使用...不好修改,所以我改成了2^100,保证roomid永远不会炸

@acgnhiki acgnhiki merged commit f75d91e into acgnhiki:master Jun 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments