mirror of
https://github.com/sot-tech/mochi.git
synced 2026-04-26 15:40:01 -07:00
panic on reads inside of a MULTI
This commit is contained in:
@@ -12,7 +12,6 @@ package redis
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -128,7 +127,7 @@ func (tx *Tx) initiateRead() error {
|
||||
return storage.ErrTxDone
|
||||
}
|
||||
if tx.multi == true {
|
||||
return errors.New("Tried to read during MULTI")
|
||||
panic("Tried to read during MULTI")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user