mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 17:00:14 +08:00
(internal) Use MutableList for grantedPermissionMap
This commit is contained in:
parent
a7777d008a
commit
d3e3db9662
@ -129,8 +129,8 @@ internal object BuiltInPermissionService : AbstractConcurrentPermissionService<P
|
|||||||
ConcurrentHashMap()
|
ConcurrentHashMap()
|
||||||
)
|
)
|
||||||
|
|
||||||
public val grantedPermissionMap: MutableMap<PermissionId, List<PermissibleIdentifier>>
|
public val grantedPermissionMap: MutableMap<PermissionId, MutableList<PermissibleIdentifier>>
|
||||||
by value<MutableMap<PermissionId, List<PermissibleIdentifier>>>(ConcurrentHashMap())
|
by value<MutableMap<PermissionId, MutableList<PermissibleIdentifier>>>(ConcurrentHashMap())
|
||||||
.withDefault { CopyOnWriteArrayList() }
|
.withDefault { CopyOnWriteArrayList() }
|
||||||
|
|
||||||
public companion object {
|
public companion object {
|
||||||
|
Loading…
Reference in New Issue
Block a user