PeerDB-io / peerdb

Fast, Simple and a cost effective tool to replicate data from Postgres to Data Warehouses, Queues and Storage
https://peerdb.io
Other
1.91k stars 60 forks source link

use context.Cause #1894

Closed serprex closed 4 days ago

serprex commented 5 days ago

WithCancelCause ctx.Err() returns context.ErrCancelled, need to call context.Cause to return cause, context.Cause returns ctx.Err when cause function not cause of context done

This was preventing scripting errors from bubbling into mirror logs