Rename AddEventListenerCtx to AddEventListener and PublishCtx to Publish (#43566)

This commit is contained in:
idafurjes
2022-01-04 09:36:01 +01:00
committed by GitHub
parent a0cf57b5b8
commit 65e60759fb
8 changed files with 27 additions and 27 deletions

View File

@@ -68,7 +68,7 @@ func inTransactionWithRetryCtx(ctx context.Context, engine *xorm.Engine, callbac
if len(sess.events) > 0 {
for _, e := range sess.events {
if err = bus.PublishCtx(ctx, e); err != nil {
if err = bus.Publish(ctx, e); err != nil {
tsclogger.Error("Failed to publish event after commit.", "error", err)
}
}