mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-06 08:00:10 +08:00
Declare type explicitly for IDE inference issue
This commit is contained in:
parent
344c54531d
commit
45c6adf956
@ -70,7 +70,7 @@ internal class GroupMemberListCaches(
|
||||
}
|
||||
|
||||
private val changedGroups: MutableCollection<Long> = ConcurrentLinkedQueue()
|
||||
private val groupListSaver by lazy {
|
||||
private val groupListSaver: ScheduledJob by lazy {
|
||||
ScheduledJob(bot.coroutineContext, bot.configuration.contactListCache.saveIntervalMillis.milliseconds) {
|
||||
runBIO { saveGroupCaches() }
|
||||
}
|
||||
@ -90,7 +90,7 @@ internal class GroupMemberListCaches(
|
||||
return ret
|
||||
}
|
||||
|
||||
private val cacheDir by lazy { bot.configuration.groupCacheDir() }
|
||||
private val cacheDir: File by lazy { bot.configuration.groupCacheDir() }
|
||||
|
||||
private fun resolveCacheFile(groupCode: Long): File {
|
||||
cacheDir.mkdirs()
|
||||
|
Loading…
Reference in New Issue
Block a user