瀏覽代碼

bus: noop should still execute fn

bergquist 7 年之前
父節點
當前提交
03dae10e79
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/bus/bus.go

+ 1 - 1
pkg/bus/bus.go

@@ -220,5 +220,5 @@ func ClearBusHandlers() {
 type noopTransactionManager struct{}
 
 func (*noopTransactionManager) InTransaction(ctx context.Context, fn func(ctx context.Context) error) error {
-	return nil
+	return fn(ctx)
 }