fix: need to use DecodeMsgpackArray

This commit is contained in:
Derrick Hammer 2024-01-07 22:54:43 -05:00
parent d6c7bd37dd
commit 0d083e8567
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import (
"git.lumeweb.com/LumeWeb/libs5-go/interfaces" "git.lumeweb.com/LumeWeb/libs5-go/interfaces"
"git.lumeweb.com/LumeWeb/libs5-go/net" "git.lumeweb.com/LumeWeb/libs5-go/net"
"git.lumeweb.com/LumeWeb/libs5-go/protocol/base" "git.lumeweb.com/LumeWeb/libs5-go/protocol/base"
"git.lumeweb.com/LumeWeb/libs5-go/utils"
"github.com/vmihailenco/msgpack/v5" "github.com/vmihailenco/msgpack/v5"
"net/url" "net/url"
) )
@ -40,7 +41,7 @@ func (a *AnnouncePeers) DecodeMessage(dec *msgpack.Decoder) error {
} }
a.connected = connected a.connected = connected
connectionUriVal, err := dec.DecodeSlice() connectionUriVal, err := utils.DecodeMsgpackArray(dec)
if err != nil { if err != nil {
return err return err