OSDN Git Service

fix config
authorHAOYUatHZ <haoyu@protonmail.com>
Tue, 27 Aug 2019 07:13:02 +0000 (15:13 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Tue, 27 Aug 2019 07:13:02 +0000 (15:13 +0800)
docs/precog/config_example.json
toolbar/precog/config/config.go

index 76406ff..c2757ce 100644 (file)
@@ -1,4 +1,7 @@
 {
+    "api" : {
+        "listening_port" : 3009
+    }, 
     "network_id": 10817814959495988245,
     "mysql" : {
         "connection" : {
index 2647440..7e42211 100644 (file)
@@ -56,7 +56,7 @@ type Node struct {
 }
 
 type API struct {
-       ListeningPort bool   `json:"listening_port"`
+       ListeningPort uint64 `json:"listening_port"`
        AccessToken   string `json:"access_token"`
        IsReleaseMode bool   `json:"is_release_mode"`
 }