فهرست منبع

Merge pull request #420 from bfontaine/srp-doc

SimpleRetryPolicy doc format fixed
Chris Bannister 10 سال پیش
والد
کامیت
222a5c7450
1فایلهای تغییر یافته به همراه10 افزوده شده و 11 حذف شده
  1. 10 11
      policies.go

+ 10 - 11
policies.go

@@ -28,17 +28,16 @@ type RetryPolicy interface {
 	Attempt(RetryableQuery) bool
 	Attempt(RetryableQuery) bool
 }
 }
 
 
-/*
-SimpleRetryPolicy has simple logic for attempting a query a fixed number of times.
-
-See below for examples of usage:
-
-	//Assign to the cluster
-	cluster.RetryPolicy = &gocql.SimpleRetryPolicy{NumRetries: 3}
-
-	//Assign to a query
- 	query.RetryPolicy(&gocql.SimpleRetryPolicy{NumRetries: 1})
-*/
+// SimpleRetryPolicy has simple logic for attempting a query a fixed number of times.
+//
+// See below for examples of usage:
+//
+//     //Assign to the cluster
+//     cluster.RetryPolicy = &gocql.SimpleRetryPolicy{NumRetries: 3}
+//
+//     //Assign to a query
+//     query.RetryPolicy(&gocql.SimpleRetryPolicy{NumRetries: 1})
+//
 type SimpleRetryPolicy struct {
 type SimpleRetryPolicy struct {
 	NumRetries int //Number of times to retry a query
 	NumRetries int //Number of times to retry a query
 }
 }