Skip to content

Commit

Permalink
SimpleRetryPolicy doc format fixed
Browse files Browse the repository at this point in the history
This fixes the indentation of the example code, which was wrongly
indented in the online Godoc.
  • Loading branch information
bfontaine committed Jun 19, 2015
1 parent 906d46b commit d9338a7
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,16 @@ type RetryPolicy interface {
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 {
NumRetries int //Number of times to retry a query
}
Expand Down

0 comments on commit d9338a7

Please sign in to comment.