瀏覽代碼

Added missing expansion of RetryableQuery API.

Phillip Couto 11 年之前
父節點
當前提交
c067f95e4a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      policies.go

+ 1 - 0
policies.go

@@ -8,6 +8,7 @@ package gocql
 //exposes the correct functions for the retry policy logic to evaluate correctly.
 type RetryableQuery interface {
 	Attempts() int
+	GetConsistency() Consistency
 }
 
 // RetryPolicy interace is used by gocql to determine if a query can be attempted