Apply fixes from StyleCI
This commit is contained in:
parent
588aea5c8e
commit
caaffb60f1
@ -145,7 +145,7 @@ trait CallHandler
|
|||||||
$only_updates = false;
|
$only_updates = false;
|
||||||
$response_tries = $this->settings['max_tries']['response'] + 1;
|
$response_tries = $this->settings['max_tries']['response'] + 1;
|
||||||
if ($last_recv) {
|
if ($last_recv) {
|
||||||
$response_tries += (int) floor((time() - $last_recv)/10);
|
$response_tries += (int) floor((time() - $last_recv) / 10);
|
||||||
}
|
}
|
||||||
while ($server_answer === null && $res_count++ < $response_tries) {
|
while ($server_answer === null && $res_count++ < $response_tries) {
|
||||||
// Loop until we get a response, loop for a max of $this->settings['max_tries']['response'] times
|
// Loop until we get a response, loop for a max of $this->settings['max_tries']['response'] times
|
||||||
|
@ -357,7 +357,7 @@ trait UpdateHandler
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$data = $this->method_call('updates.getState', [], ['datacenter' => $this->settings['connection_settings']['default_dc']]);
|
$data = $this->method_call('updates.getState', [], ['datacenter' => $this->settings['connection_settings']['default_dc']]);
|
||||||
$this->get_cdn_config( $this->settings['connection_settings']['default_dc']);
|
$this->get_cdn_config($this->settings['connection_settings']['default_dc']);
|
||||||
} finally {
|
} finally {
|
||||||
$this->updates_state['sync_loading'] = $last;
|
$this->updates_state['sync_loading'] = $last;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user