Skip to content

Commit 567905e

Browse files
committed
make flush a no-op
1 parent 6410b2c commit 567905e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/LaunchDarkly/EventProcessor.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,16 @@ public function enqueue($event) {
5959
}
6060

6161
protected function flush() {
62-
if (empty($this->_queue)) {
63-
return;
64-
}
62+
// if (empty($this->_queue)) {
63+
// return;
64+
// }
6565

66-
$payload = json_encode($this->_queue);
66+
// $payload = json_encode($this->_queue);
6767

68-
$args = $this->createArgs($payload);
68+
// $args = $this->createArgs($payload);
6969

70-
return $this->makeRequest($args);
70+
// return $this->makeRequest($args);
71+
return true;
7172
}
7273

7374
private function createArgs($payload) {
@@ -82,7 +83,7 @@ private function createArgs($payload) {
8283
}
8384

8485
private function makeRequest($args) {
85-
$cmd = "/usr/bin/env curl " . escapeshellcmd($args) . "> /dev/null 2>&1 &";
86+
$cmd = "/usr/bin/env curl " . escapeshellcmd($args) . ">> /tmp/curl.log 2>&1 &";
8687
$out = shell_exec($cmd);
8788
return true;
8889
}

0 commit comments

Comments
 (0)