mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-22 07:18:11 -07:00
use maps.Clone from go1.21
This commit is contained in:
+2
-1
@@ -8,6 +8,7 @@ package irc
|
||||
import (
|
||||
"crypto/x509"
|
||||
"fmt"
|
||||
"maps"
|
||||
"net"
|
||||
"runtime/debug"
|
||||
"strconv"
|
||||
@@ -1743,7 +1744,7 @@ func (client *Client) handleRegisterTimeout() {
|
||||
func (client *Client) copyLastSeen() (result map[string]time.Time) {
|
||||
client.stateMutex.RLock()
|
||||
defer client.stateMutex.RUnlock()
|
||||
return utils.CopyMap(client.lastSeen)
|
||||
return maps.Clone(client.lastSeen)
|
||||
}
|
||||
|
||||
// these are bit flags indicating what part of the client status is "dirty"
|
||||
|
||||
Reference in New Issue
Block a user