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