Merge "stats: Implement interface in BufferingStatsdDataFactory correctly"

This commit is contained in:
jenkins-bot 2022-03-10 17:23:14 +00:00 committed by Gerrit Code Review
commit 0170d893a8

View file

@ -88,24 +88,26 @@ class BufferingStatsdDataFactory extends StatsdDataFactory implements IBuffering
/**
* @param string $key
* @param float|int $value
* @return void
* @return array
*/
public function set( $key, $value ) {
if ( !$this->enabled ) {
return;
return [];
}
$this->buffer[] = [ $key, $value, StatsdDataInterface::STATSD_METRIC_SET ];
return [];
}
/**
* @param string $key
* @return void
* @return array
*/
public function increment( $key ) {
if ( !$this->enabled ) {
return;
return [];
}
$this->buffer[] = [ $key, 1, StatsdDataInterface::STATSD_METRIC_COUNT ];
return [];
}
/**