diff --git a/cron/task/client.go b/cron/task/client.go index d5a6188..fa7baa7 100644 --- a/cron/task/client.go +++ b/cron/task/client.go @@ -57,7 +57,7 @@ func (c networkClient) ClientOfflineNotify() { for _, peer := range connectedPeers { var clientName string 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 { clientName = cli.Name }