1 Star 0 Fork 2

mickelfeng/openp2p

forked from 柔情铁憨/openp2p 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
p2pappkeys.go 252 Bytes
一键复制 编辑 原始数据 按行查看 历史
hhd 提交于 2021-11-24 18:44 +08:00 . init
package main
import (
"sync"
)
var p2pAppKeys sync.Map
func GetKey(appID uint64) uint64 {
i, ok := p2pAppKeys.Load(appID)
if !ok {
return 0
}
return i.(uint64)
}
func SaveKey(appID uint64, appKey uint64) {
p2pAppKeys.Store(appID, appKey)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mickelfeng/openp2p.git
git@gitee.com:mickelfeng/openp2p.git
mickelfeng
openp2p
openp2p
master

搜索帮助