Skip to content

use sync.Map to store UserDatas#9

Open
Iceber wants to merge 1 commit intomainfrom
use_sync_map
Open

use sync.Map to store UserDatas#9
Iceber wants to merge 1 commit intomainfrom
use_sync_map

Conversation

@Iceber
Copy link
Owner

@Iceber Iceber commented Oct 9, 2021

The frequent locking and unlocking makes the code logic look confusing.
Map is more appropriate, but the version must be greater than 1.15 due to the LoadAndDelete.

@avagin
Copy link
Contributor

avagin commented Oct 12, 2021

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants