X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/95159e5585762c06c654945070ba54262b7dcec9..1a37f0144d0fd777771c6d870e3c3298947e2712:/hotline/transaction.go diff --git a/hotline/transaction.go b/hotline/transaction.go index 7883bfb..39dcd81 100644 --- a/hotline/transaction.go +++ b/hotline/transaction.go @@ -214,7 +214,8 @@ func (t *Transaction) Read(p []byte) (int, error) { bbuf := new(bytes.Buffer) for _, field := range t.Fields { - _, err := bbuf.ReadFrom(&field) + f := field + _, err := bbuf.ReadFrom(&f) if err != nil { return 0, fmt.Errorf("error reading field: %w", err) }