@@ -43,7 +43,7 @@ func (r *lazyRatelimiter) CreateResource(
4343 resource ratelimiter.Resource ,
4444) (err error ) {
4545 r .init ()
46- return retry .Retry (ctx , false , func (ctx context.Context ) (err error ) {
46+ return retry .Retry (ctx , func (ctx context.Context ) (err error ) {
4747 return r .client .CreateResource (ctx , coordinationNodePath , resource )
4848 })
4949}
@@ -54,7 +54,7 @@ func (r *lazyRatelimiter) AlterResource(
5454 resource ratelimiter.Resource ,
5555) (err error ) {
5656 r .init ()
57- return retry .Retry (ctx , false , func (ctx context.Context ) (err error ) {
57+ return retry .Retry (ctx , func (ctx context.Context ) (err error ) {
5858 return r .client .AlterResource (ctx , coordinationNodePath , resource )
5959 })
6060}
@@ -65,7 +65,7 @@ func (r *lazyRatelimiter) DropResource(
6565 resourcePath string ,
6666) (err error ) {
6767 r .init ()
68- return retry .Retry (ctx , false , func (ctx context.Context ) (err error ) {
68+ return retry .Retry (ctx , func (ctx context.Context ) (err error ) {
6969 return r .client .DropResource (ctx , coordinationNodePath , resourcePath )
7070 })
7171}
@@ -77,7 +77,7 @@ func (r *lazyRatelimiter) ListResource(
7777 recursive bool ,
7878) (paths []string , err error ) {
7979 r .init ()
80- err = retry .Retry (ctx , false , func (ctx context.Context ) (err error ) {
80+ err = retry .Retry (ctx , func (ctx context.Context ) (err error ) {
8181 paths , err = r .client .ListResource (ctx , coordinationNodePath , resourcePath , recursive )
8282 return err
8383 })
@@ -90,7 +90,7 @@ func (r *lazyRatelimiter) DescribeResource(
9090 resourcePath string ,
9191) (resource * ratelimiter.Resource , err error ) {
9292 r .init ()
93- err = retry .Retry (ctx , false , func (ctx context.Context ) (err error ) {
93+ err = retry .Retry (ctx , func (ctx context.Context ) (err error ) {
9494 resource , err = r .client .DescribeResource (ctx , coordinationNodePath , resourcePath )
9595 return err
9696 })
@@ -105,7 +105,7 @@ func (r *lazyRatelimiter) AcquireResource(
105105 isUsedAmount bool ,
106106) (err error ) {
107107 r .init ()
108- return retry .Retry (ctx , false , func (ctx context.Context ) (err error ) {
108+ return retry .Retry (ctx , func (ctx context.Context ) (err error ) {
109109 return r .client .AcquireResource (ctx , coordinationNodePath , resourcePath , amount , isUsedAmount )
110110 })
111111}
0 commit comments