File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,8 @@ struct ModuleService::ServiceImpl : viam::module::v1::ModuleService::Service {
195195 if (parent.parent_addr_ != new_parent_addr) {
196196 parent.parent_addr_ = std::move (new_parent_addr);
197197 Options opts{0 , boost::none};
198- opts.set_check_every_interval (5 ).set_reconnect_every_interval (1 );
198+ opts.set_check_every_interval (std::chrono::seconds{5 })
199+ .set_reconnect_every_interval (std::chrono::seconds{1 });
199200 parent.parent_ = RobotClient::at_local_socket (parent.parent_addr_ , opts);
200201 parent.parent_ ->connect_logging ();
201202 }
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ void RobotClient::check_connection() {
270270 }
271271 const auto * uri = viam_channel_.get_channel_addr ();
272272 VIAM_SDK_LOG (error) << " Lost connection to machine at address " << uri << " with error "
273- << what << " . Attempting to reconnect every " << reconnect_every
273+ << what << " . Attempting to reconnect every " << reconnect_every. count ()
274274 << " second(s)" ;
275275
276276 viam_channel_.close ();
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ std::chrono::seconds Options::reconnect_every_interval() const {
223223 return reconnect_every_interval_;
224224}
225225
226- unsigned int Options::refresh_interval () const {
226+ std::chrono::seconds Options::refresh_interval () const {
227227 return refresh_interval_;
228228}
229229
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ class Options {
119119 Options (unsigned int refresh_interval, boost::optional<DialOptions> dial_options)
120120 : refresh_interval_(std::move(refresh_interval)), dial_options_(std::move(dial_options)) {}
121121
122- unsigned int refresh_interval () const ;
122+ std::chrono::seconds refresh_interval () const ;
123123 std::chrono::seconds check_every_interval () const ;
124124 std::chrono::seconds reconnect_every_interval () const ;
125125
You can’t perform that action at this time.
0 commit comments