Skip to content

Commit 288e6f5

Browse files
authored
fix memory leak, remove query_logs
1 parent f8ff111 commit 288e6f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php-binance-api.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class API
5252
// /< value of available onOrder assets
5353

5454
protected $exchangeInfo = NULL;
55-
protected $query_logs = [];
55+
protected $lastRequest = [];
5656

5757
/**
5858
* Constructor for the class,
@@ -1008,7 +1008,7 @@ protected function httpRequest(string $url, string $method = "GET", array $param
10081008

10091009
$json = json_decode($output, true);
10101010

1011-
$this->query_logs[] = [
1011+
$this->lastRequest = [
10121012
'url' => $url,
10131013
'method' => $method,
10141014
'params' => $params,

0 commit comments

Comments
 (0)