File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ public function __construct($config = [], LoggerInterface $logger = null)
107
107
$ this ->logger = new NullLogger ();
108
108
}
109
109
110
+ $ this ->retry = new Retry ($ this ->logger );
111
+
110
112
if (isset ($ config ['credentials ' ])){
111
113
$ this ->iam_config ['credentials ' ] = $ config ['credentials ' ];
112
114
$ config ['credentials ' ]->setLogger ($ this ->logger ());
@@ -118,10 +120,11 @@ public function __construct($config = [], LoggerInterface $logger = null)
118
120
if (isset ($ config ['discoveryInterval ' ])){
119
121
$ this ->discoveryInterval = $ config ['discoveryInterval ' ];
120
122
}
121
- $ this ->discover ();
122
- }
123
123
124
- $ this ->retry = new Retry ($ this ->logger );
124
+ $ this ->retry (function (){
125
+ $ this ->discover ();
126
+ }, true );
127
+ }
125
128
126
129
$ this ->logger ()->info ('YDB: Initialized ' );
127
130
}
You can’t perform that action at this time.
0 commit comments