chore(deps): upgrade to Go v1.22 and deps (#1423)

* chore(deps): upgrade go to v1.22 and deps

* chore(deps): upgrade workflow go to v1.22
This commit is contained in:
ze0s 2024-02-22 14:33:50 +01:00 committed by GitHub
parent 3c40c7bba8
commit 8156c8d66e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 99 additions and 88 deletions

View file

@ -6,6 +6,7 @@ package irc
import (
"crypto/tls"
"fmt"
"slices"
"strings"
"time"
@ -23,7 +24,6 @@ import (
"github.com/r3labs/sse/v2"
"github.com/rs/zerolog"
"github.com/sasha-s/go-deadlock"
"golang.org/x/exp/slices"
)
var (
@ -1051,6 +1051,5 @@ func (h *Handler) ReportStatus(netw *domain.IrcNetworkWithHealth) {
netw.Healthy = channelsHealthy
// TODO with Go 1.21 this can moved from golang.org/x/exp/slices to built in slices:
netw.ConnectionErrors = slices.Clone(h.connectionErrors)
}