Updated caps birpc server

This commit is contained in:
Trial97
2021-07-14 14:11:49 +03:00
committed by Dan Christian Bogos
parent 4fe51d4d05
commit 8ed0a145f9
9 changed files with 65 additions and 15 deletions

View File

@@ -146,6 +146,9 @@ func newCapsBiRPCJSONCodec(conn conn, caps *engine.Caps, anz *analyzers.Analyzer
}
func newCapsBiRPCCodec(sc rpc2.Codec, caps *engine.Caps) rpc2.Codec {
if !caps.IsLimited() {
return sc
}
return &capsBiRPCCodec{
sc: sc,
caps: caps,