Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed Apr 23, 2020
1 parent 32f81b3 commit b69d2ef
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ class Collector

public $metric;

private $generator;

public function __construct(Generator $generator)
public function __construct()
{
$this->generator = $generator;
}

public function create($metric)
Expand Down Expand Up @@ -46,6 +43,7 @@ public function setCount($count)

public function send()
{
$this->generator->fire($this->metric);
$generator = new Generator();
$generator->fire($this->metric);
}
}

0 comments on commit b69d2ef

Please sign in to comment.