use correct packages
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m51s

This commit is contained in:
matst80
2024-11-10 21:58:43 +01:00
parent c70c5cd930
commit ab0e708d00
5 changed files with 65 additions and 11 deletions

View File

@@ -263,7 +263,7 @@ func (h *RemoteHost) Negotiate(knownHosts []string) ([]string, error) {
}
func (g *RemoteHost) GetCartMappings() ([]CartId, error) {
data, err := g.Call(GetCartIds, CartIdsResponse, nil)
data, err := g.Call(GetCartIds, CartIdsResponse, []byte{})
if err != nil {
return nil, err
}
@@ -359,7 +359,7 @@ func (p *SyncedPool) addRemoteHost(address string, remote *RemoteHost) error {
}
func (h *RemoteHost) Ping() error {
_, err := h.Call(Ping, Pong, nil)
_, err := h.Call(Ping, Pong, []byte{})
if err != nil {
h.MissedPings++
@@ -379,7 +379,7 @@ func (p *SyncedPool) AddRemote(host string) error {
if err != nil {
log.Printf("Error connecting to remote %s: %v\n", host, err)
}
_, err = client.Call(Ping, Pong, nil)
_, err = client.Call(Ping, Pong, []byte{})
if err != nil {
log.Printf("Error pinging remote %s: %v\n", host, err)