X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/22c599abc18895f73e96095f35b71cf3357d41b4..d492c46d7e2087114d25f64823de9027592d5fc4:/hotline/transaction.go diff --git a/hotline/transaction.go b/hotline/transaction.go index 8fbdf35..835d194 100644 --- a/hotline/transaction.go +++ b/hotline/transaction.go @@ -214,7 +214,7 @@ func ReadFields(paramCount []byte, buf []byte) ([]Field, error) { return fields, nil } -func (t Transaction) Payload() []byte { +func (t Transaction) MarshalBinary() (data []byte, err error) { payloadSize := t.Size() fieldCount := make([]byte, 2) @@ -234,7 +234,7 @@ func (t Transaction) Payload() []byte { payloadSize, // this is the dataSize field, but seeming the same as totalSize fieldCount, fieldPayload, - ) + ), err } // Size returns the total size of the transaction payload