(enableRPCCompression bool)
| 204 | } |
| 205 | |
| 206 | func getProtocolFactory(enableRPCCompression bool) thrift.TProtocolFactory { |
| 207 | if enableRPCCompression { |
| 208 | return thrift.NewTCompactProtocolFactoryConf(&thrift.TConfiguration{}) |
| 209 | } else { |
| 210 | return thrift.NewTBinaryProtocolFactoryConf(&thrift.TConfiguration{}) |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | func (s *Session) Close() error { |
| 215 | req := rpc.NewTSCloseSessionReq() |
no outgoing calls
no test coverage detected
searching dependent graphs…