func doRunInTransaction(base ds.RawInterface, f func(context.Context) error, opts *ds.TransactionOptions) error { return base.RunInTransaction(func(ctx context.Context) error { return withTxnBuf(ctx, f, opts) }, opts) }