Browse Source

bus: noop should still execute fn

bergquist 7 years ago
parent
commit
03dae10e79
1 changed files with 1 additions and 1 deletions
  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)
 }