File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1515 $ env ['ALGOLIA_ADMIN_KEY ' ]
1616);
1717
18+ $ config ->setMaxRetries (200 );
19+ var_dump ($ config ->getDefaultMaxRetries ());
20+
1821//$config->setFullHosts(
1922// [
2023// 'http://localhost:6677',
Original file line number Diff line number Diff line change @@ -48,6 +48,20 @@ class {{configClassname}} extends {{#hasRegionalHost}}ConfigWithRegion{{/hasRegi
4848 return $this -> config [' waitTaskTimeBeforeRetry' ];
4949 }
5050
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+
5165 public function getDefaultMaxRetries()
5266 {
5367 return $this -> config [' defaultMaxRetries' ];
@@ -73,4 +87,4 @@ class {{configClassname}} extends {{#hasRegionalHost}}ConfigWithRegion{{/hasRegi
7387 { {/isSearchClient} }
7488 ];
7589 }
76- }
90+ }
You can’t perform that action at this time.
0 commit comments