You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current pattern to handle errors in producers is:
iferr!=nil {
log.Fatal().Err(err).Msg("...")
}
This causes to the os.Exit(1) function to be called.
In the light of better modularization/plugins, producers should return a proper error to let the caller a chance to handle it.
This means that the current Producer interface should be amended to become:
typeProducerinterface {
Produce(ctx context.Context, k []byte, v []byte, oany) errorClose(ctx context.Context) error
}
The current pattern to handle errors in producers is:
This causes to the
os.Exit(1)
function to be called.In the light of better modularization/plugins, producers should return a proper error to let the caller a chance to handle it.
This means that the current
Producer
interface should be amended to become:Relates to #163
The text was updated successfully, but these errors were encountered: