Skip to content

Commit

Permalink
service types fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Dec 23, 2024
1 parent 4c2643d commit a3de61a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Service/ServiceEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ function (Payload $message) {
$response = $handler->handle($message);
break;
case is_callable($this->endpointHandler):
$func = $this->endpointHandler;

$response = $func($message);
$response = call_user_func($this->endpointHandler, $message);
break;
case $this->endpointHandler instanceof EndpointHandler:
$response = $this->endpointHandler->handle($message);
Expand Down Expand Up @@ -103,7 +101,7 @@ public function getNumRequests(): int

public function getProcessingTime(): int
{
return round($this->processing_time * 1e9);
return intval(round($this->processing_time * 1e9));
}

public function resetStats(): void
Expand Down

0 comments on commit a3de61a

Please sign in to comment.