Преглед на файлове

No need to panic as Cassandra will return an error

Cassandra will return an error to the query which is descriptive,
no need to panic.
Chris Bannister преди 10 години
родител
ревизия
048fefa363
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  1. 0 3
      session.go

+ 0 - 3
session.go

@@ -524,9 +524,6 @@ func (q *Query) Bind(v ...interface{}) *Query {
 // SERIAL. This option will be ignored for anything else that a
 // conditional update/insert.
 func (q *Query) SerialConsistency(cons Consistency) *Query {
-	if !(cons == Serial || cons == LocalSerial) {
-		panic("only acceptable consistency for serial_consistency is SERIAL or LOCAL_SERIAL")
-	}
 	q.serialCons = cons
 	return q
 }