8000 use psocket for statsd · etherscan-io/Ethplorer@cb85aa0 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cb85aa0

Browse files
committed
use psocket for statsd
1 parent 4b97269 commit cb85aa0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

service/lib/cache.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,12 @@ public function __construct(array $aConfig, $driver = FALSE, $useLocks = FALSE){
129129
$this->driver = $driver;
130130
}
131131
if (!empty($aConfig['statsd'])) {
132-
$connection = new \Domnikl\Statsd\Connection\UdpSocket($aConfig['statsd']['host'], $aConfig['statsd']['port']);
132+
$connection = new \Domnikl\Statsd\Connection\UdpSocket(
133+
$aConfig['statsd']['host'],
134+
$aConfig['statsd']['port'],
135+
isset($aConfig['statsd']['timeout']) ? $aConfig['statsd']['timeout'] : 0.5,
136+
isset($aConfig['statsd']['persist']) ? $aConfig['statsd']['persist'] : true
137+
);
133138
$this->metric = new \Domnikl\Statsd\Client($connection, $aConfig['statsd']['prefix']);
134139

135140
}

0 commit comments

Comments
 (0)
0