hnhkj opened a new issue, #90:
URL: https://github.com/apache/iotdb-client-go/issues/90

   我需要连续写入数据到数据库中,但是发现中间一直有丢包现象。通过调用insertWbRawData(v.Payload, 
i)函数,checkError()没有返回错误信息。但是检查数据库确没有发现数据。
   
   ```
   func insertWbRawData(val string, cnt int) {
        var (
                deviceId           = "root.call4.care.wbs.raw"
                measurements       = []string{"data", "cnt"}
                values             = []string{}
                timestamp    int64 = time.Now().UTC().UnixNano() / 1000000
        )
        values = append(values, val+" "+strconv.Itoa(cnt))
        values = append(values, strconv.Itoa(cnt))
        checkError(session.InsertStringRecord(deviceId, measurements, values, 
timestamp))
   }
   
   func checkError(status *rpc.TSStatus, err error) {
        if err != nil {
                log.Fatal(err)
        }
   
        if status != nil {
                if err = client.VerifySuccess(status); err != nil {
                        log.Println(err)
                } else {
                        fmt.Println("suc", i)
                }
        }
   }
   ```


-- 
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: notifications-unsubscr...@iotdb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to