chore: use go 1.23 (#14647)
This commit is contained in:
parent
40b6d1b7f3
commit
0f511ce93f
17 changed files with 27 additions and 31 deletions
|
|
@ -2,13 +2,14 @@ package goodwe
|
|||
|
||||
import (
|
||||
"encoding/binary"
|
||||
"maps"
|
||||
"net"
|
||||
"slices"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/cenkalti/backoff/v4"
|
||||
"github.com/evcc-io/evcc/util"
|
||||
"golang.org/x/exp/maps"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -66,7 +67,7 @@ func (m *Server) readData() {
|
|||
|
||||
for {
|
||||
mu.RLock()
|
||||
ips := maps.Keys(m.inverters)
|
||||
ips := slices.Collect(maps.Keys(m.inverters))
|
||||
mu.RUnlock()
|
||||
|
||||
for _, ip := range ips {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue