Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "phptars/tars-client",
"description": "tars的php-client能力",
"version":"0.3.0",
"version":"0.3.1",
"authors": [
{
"name": "Chen Liang",
Expand Down
2 changes: 1 addition & 1 deletion src/Communicator.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function __construct(CommunicatorConfig $config)
$this->_queryF = new QueryFWrapper($this->_locator, $this->_routeSocketMode, $this->_refreshEndpointInterval);
$this->_routeInfo = $this->_queryF->findObjectById($this->_servantName);
// 初始化上报组件,只在指定了主控的前提下
if(class_exists("\Tars\App")) {
if(class_exists("\Tars\App") && \Tars\App::getStatF()) {
$this->_statF = \Tars\App::getStatF();
}
else {
Expand Down