handle context cancelation
Some checks failed
Tests / tests (pull_request) Failing after 5s

This commit is contained in:
2025-11-13 16:05:16 +00:00
parent 6b4373c889
commit d913e5fb53
7 changed files with 50 additions and 29 deletions

View File

@@ -1,6 +1,7 @@
package trading212
import (
"context"
"encoding/csv"
"fmt"
"io"
@@ -66,7 +67,7 @@ const (
LimitSell = "limit sell"
)
func (rr RecordReader) ReadRecord() (internal.Record, error) {
func (rr RecordReader) ReadRecord(_ context.Context) (internal.Record, error) {
for {
raw, err := rr.reader.Read()
if err != nil {