citrusreticulata commented on issue #52:
URL: https://github.com/apache/iotdb-client-go/issues/52#issuecomment-1280445011
Please check the version of thrift and the version of iotdb-clinet-go.
In thrift 0.14.1, function `NewTSocketConf` returns 2 values. It's specific
implementation of this function is as follows:
```
func NewTSocketConf(hostPort string, conf *TConfiguration) (*TSocket, error)
{
addr, err := net.ResolveTCPAddr("tcp", hostPort)
if err != nil {
return nil, err
}
return NewTSocketFromAddrConf(addr, conf), nil
}
```
In thrift 0.15.0, function `NewTSocketConf` returns 1 value. It's specific
implementation of this function is as follows:
```
func NewTSocketConf(hostPort string, conf *TConfiguration) *TSocket {
return NewTSocketFromAddrConf(tcpAddr(hostPort), conf)
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]