Skip to content

Commit

Permalink
add promise resolution to actually invoke the call
Browse files Browse the repository at this point in the history
  • Loading branch information
templeandwebster committed Aug 13, 2024
1 parent a4107ad commit 873a824
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Optimizely/Event/Dispatcher/DefaultEventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function dispatchEvent(LogEvent $event)
'connect_timeout' => DefaultEventDispatcher::TIMEOUT
];

$this->httpClient->requestAsync($event->getHttpVerb(), $event->getUrl(), $options);
$this->httpClient->requestAsync($event->getHttpVerb(), $event->getUrl(), $options)
->then(fn($response) => $response);
}
}

0 comments on commit 873a824

Please sign in to comment.