aboutsummaryrefslogtreecommitdiff
path: root/hotline/transaction.go
diff options
context:
space:
mode:
Diffstat (limited to 'hotline/transaction.go')
-rw-r--r--hotline/transaction.go3
1 files changed, 2 insertions, 1 deletions
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)
}