fix: we need to use EncodeMsgpackArray
This commit is contained in:
parent
819219cdcf
commit
291a87aefc
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue