mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 16:25:35 +00:00
small cleanup
This commit is contained in:
parent
1e7cccd9a9
commit
d5aef2525f
@ -28,7 +28,8 @@ lazy_static! {
|
||||
pub static ref CLIENT_MOD_PROGRESS: Mutex<HashMap<u8, isize>> = Mutex::new(HashMap::new());
|
||||
}
|
||||
|
||||
async fn claim_id() -> std::result::Result<u8, ()> {
|
||||
// TODO: Return a proper error?
|
||||
async fn claim_id() -> Result<u8, ()> {
|
||||
let mut lock = TAKEN_PLAYER_IDS.lock().await;
|
||||
for index in 0..255 {
|
||||
if !lock[index] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user