This commit is contained in:
parent
dfe89d465c
commit
19a025e888
@ -57,7 +57,7 @@ func (c networkClient) ClientOfflineNotify() {
|
|||||||
for _, peer := range connectedPeers {
|
for _, peer := range connectedPeers {
|
||||||
var clientName string
|
var clientName string
|
||||||
if !slices.ContainsFunc(clients, func(cli model.Client) bool {
|
if !slices.ContainsFunc(clients, func(cli model.Client) bool {
|
||||||
isExist := peer.PublicKey.String() == jsoniter.Get([]byte(cli.Keys), "PublicKey").ToString()
|
isExist := peer.PublicKey.String() == jsoniter.Get([]byte(cli.Keys), "publicKey").ToString()
|
||||||
if isExist {
|
if isExist {
|
||||||
clientName = cli.Name
|
clientName = cli.Name
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user