Skip to content

data_source: snapshot readers so Append can reload - #404

Open
team-humaki wants to merge 1 commit into
go-ini:mainfrom
team-humaki:data-source-snapshot-readers
Open

team-humaki wants to merge 1 commit into
go-ini:mainfrom
team-humaki:data-source-snapshot-readers

Conversation

@team-humaki

Copy link
Copy Markdown

Append stored io.Reader / ReadCloser sources as-is, then Reload closed them. A second Append (or Reload) failed with "file already closed" because those streams are not rewindable.

Read the bytes once when the source is ingested and keep a sourceData snapshot so later reloads can re-read. Fixes #324.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Append() get file already closed when trying to append a second io.Reader

1 participant