ing
This commit is contained in:
parent
37e3381997
commit
1455ae5cee
15
Gopkg.lock
generated
15
Gopkg.lock
generated
@ -47,7 +47,7 @@
|
|||||||
"socket/web",
|
"socket/web",
|
||||||
"socket/web/client"
|
"socket/web/client"
|
||||||
]
|
]
|
||||||
revision = "20a63b3de6efdc0942bfb4be21ddc64e2b76f59d"
|
revision = "cbe8e30db48a21b33650c5ed7e7d8bbf4784c9d4"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
@ -87,7 +87,7 @@
|
|||||||
"model/sensorconfig",
|
"model/sensorconfig",
|
||||||
"service/probe"
|
"service/probe"
|
||||||
]
|
]
|
||||||
revision = "7e2ff26648aefbafaee2ca28c1a958332ae4c6f9"
|
revision = "54725b74e13a501d7a13a76a82c294769729748d"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/BurntSushi/toml"
|
name = "github.com/BurntSushi/toml"
|
||||||
@ -133,14 +133,23 @@
|
|||||||
version = "v1.1"
|
version = "v1.1"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
|
||||||
name = "github.com/shirou/gopsutil"
|
name = "github.com/shirou/gopsutil"
|
||||||
packages = [
|
packages = [
|
||||||
|
"cpu",
|
||||||
"host",
|
"host",
|
||||||
"internal/common",
|
"internal/common",
|
||||||
|
"mem",
|
||||||
|
"net",
|
||||||
"process"
|
"process"
|
||||||
]
|
]
|
||||||
revision = "4a180b209f5f494e5923cfce81ea30ba23915877"
|
revision = "4a180b209f5f494e5923cfce81ea30ba23915877"
|
||||||
|
version = "v2.18.06"
|
||||||
|
|
||||||
|
[[projects]]
|
||||||
|
branch = "master"
|
||||||
|
name = "github.com/shirou/w32"
|
||||||
|
packages = ["."]
|
||||||
|
revision = "bb4de0191aa41b5507caa14b0650cdbddcd9280b"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/valyala/fasthttp"
|
name = "github.com/valyala/fasthttp"
|
||||||
|
@ -8,13 +8,14 @@
|
|||||||
"connector": {
|
"connector": {
|
||||||
"reconnectInterval": 5,
|
"reconnectInterval": 5,
|
||||||
"reconnectTryTime": 10,
|
"reconnectTryTime": 10,
|
||||||
"maxMessageSize": 4096,
|
"maxMessageSize": 8192,
|
||||||
"readBufferSize": 4096,
|
"readBufferSize": 8192,
|
||||||
"writeBufferSize": 4096,
|
"writeBufferSize": 8192,
|
||||||
"pongTimeout": 60,
|
"pongTimeout": 60,
|
||||||
"pingTimeout": 10,
|
"pingTimeout": 10,
|
||||||
"pingPeriod": 9,
|
"pingPeriod": 9,
|
||||||
"compressionThreshold": 8192
|
"enableCompression": false,
|
||||||
|
"compressionThreshold": 4096
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"probe": {
|
"probe": {
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func New(name string, connector cssc.Connector, services []interface{}) *crc.Client {
|
func New(name string, connector cssc.Connector, services []interface{}) *crc.Client {
|
||||||
codec := crpj.NewClientCodec()
|
codec := crpj.NewCustomClientCodec(crc.NewCompressionCodecSelector(connector.GetCompressionThreshold()))
|
||||||
|
|
||||||
var rpcRegistry crr.RPCRegistry
|
var rpcRegistry crr.RPCRegistry
|
||||||
if nil != services && 0 < len(services) {
|
if nil != services && 0 < len(services) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user