mirror of
https://github.com/Yubico/yubikey-val.git
synced 2024-11-29 09:24:12 +01:00
Refactor.
- remove wrapper which provides no help, just makes it harder to follow the code.
This commit is contained in:
parent
2ff2a7e42f
commit
a4a12d2f2d
@ -434,7 +434,7 @@ class SyncLib
|
||||
/*
|
||||
Send out requests
|
||||
*/
|
||||
$ans_arr=$this->retrieveURLasync_wrap($urls, $ans_req, $timeout);
|
||||
$ans_arr=retrieveURLasync("YK-VAL sync", $urls, $this->myLog, $ans_req, $match="status=OK", $returl=True, $timeout, $this->curlopts);
|
||||
|
||||
if (!is_array($ans_arr)) {
|
||||
$this->log(LOG_WARNING, 'No responses from validation server pool');
|
||||
@ -537,10 +537,4 @@ class SyncLib
|
||||
if (isset($this->answers)) return $this->answers;
|
||||
else return 0;
|
||||
}
|
||||
|
||||
function retrieveURLasync_wrap ($urls, $ans_req=1, $timeout=1.0)
|
||||
{
|
||||
return retrieveURLasync("YK-VAL sync", $urls, $this->myLog, $ans_req, $match="status=OK", $returl=True, $timeout, $this->curlopts);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user