Shopify / ghostferry

The swiss army knife of live data migrations
https://shopify.github.io/ghostferry
MIT License
694 stars 65 forks source link

Remove WithRetries block to return first error #259

Closed Lincoln23 closed 3 years ago

Lincoln23 commented 3 years ago

260

Using the WithRetries block we override the error from s.binlogStreamer.GetEvent(ctx) since the library returns a new error if s.err is set here. We want to return the first error raised and not ErrNeedSyncAgain