panic on reads inside of a MULTI
This commit is contained in:
parent
33d1caf670
commit
3df97fea4d
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue