fix: we need to use EncodeMsgpackArray

This commit is contained in:
Derrick Hammer 2024-01-07 22:35:41 -05:00
parent 819219cdcf
commit 291a87aefc
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import (
"git.lumeweb.com/LumeWeb/libs5-go/net"
"git.lumeweb.com/LumeWeb/libs5-go/protocol/base"
"git.lumeweb.com/LumeWeb/libs5-go/types"
"git.lumeweb.com/LumeWeb/libs5-go/utils"
"github.com/vmihailenco/msgpack/v5"
"net/url"
)
@ -48,6 +49,11 @@ func (m HandshakeDone) EncodeMsgpack(enc *msgpack.Encoder) error {
return err
}
err = utils.EncodeMsgpackArray(enc, m.connectionUris)
if err != nil {
return err
}
return nil
}