mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 10:52:33 +08:00
17 lines
255 B
Go
17 lines
255 B
Go
package tx
|
|
|
|
import (
|
|
"context"
|
|
"github.com/OpenIMSDK/tools/tx"
|
|
)
|
|
|
|
func NewInvalidTx() tx.CtxTx {
|
|
return invalid{}
|
|
}
|
|
|
|
type invalid struct{}
|
|
|
|
func (m invalid) Transaction(ctx context.Context, fn func(ctx context.Context) error) error {
|
|
return fn(ctx)
|
|
}
|