|
@@ -97,7 +97,8 @@ func (cc CachedConn) Exec(exec ExecFn, keys ...string) (sql.Result, error) {
|
|
}
|
|
}
|
|
|
|
|
|
// ExecCtx runs given exec on given keys, and returns execution result.
|
|
// ExecCtx runs given exec on given keys, and returns execution result.
|
|
-func (cc CachedConn) ExecCtx(ctx context.Context, exec ExecCtxFn, keys ...string) (sql.Result, error) {
|
|
|
|
|
|
+func (cc CachedConn) ExecCtx(ctx context.Context, exec ExecCtxFn, keys ...string) (
|
|
|
|
+ sql.Result, error) {
|
|
res, err := exec(ctx, cc.db)
|
|
res, err := exec(ctx, cc.db)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|