File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 15
15
$ env ['ALGOLIA_ADMIN_KEY ' ]
16
16
);
17
17
18
+ $ config ->setMaxRetries (200 );
19
+ var_dump ($ config ->getDefaultMaxRetries ());
20
+
18
21
//$config->setFullHosts(
19
22
// [
20
23
// 'http://localhost:6677',
Original file line number Diff line number Diff line change @@ -48,6 +48,20 @@ class {{configClassname}} extends {{#hasRegionalHost}}ConfigWithRegion{{/hasRegi
48
48
return $this -> config [' waitTaskTimeBeforeRetry' ];
49
49
}
50
50
51
+ /**
52
+ * Sets the max retries value used in the Search helpers (e.g. replaceAllobjects)
53
+ *
54
+ * @param number $maxRetries the user agent of the api client
55
+ *
56
+ * @return $this
57
+ */
58
+ public function setMaxRetries($maxRetries)
59
+ {
60
+ $this -> config [' defaultMaxRetries' ] = $maxRetries ;
61
+
62
+ return $this ;
63
+ }
64
+
51
65
public function getDefaultMaxRetries()
52
66
{
53
67
return $this -> config [' defaultMaxRetries' ];
@@ -73,4 +87,4 @@ class {{configClassname}} extends {{#hasRegionalHost}}ConfigWithRegion{{/hasRegi
73
87
{ {/isSearchClient} }
74
88
];
75
89
}
76
- }
90
+ }
You can’t perform that action at this time.
0 commit comments