Writing data to influxDB asynchronously

We are trying to write synchronously in InfluxDB by using blocking API WriteRecord() of go package “github.com/influxdata/influxdb-client-go/v2” , This method is not showing any error but it is not inserting into db. WritePoint() method works but it is asynchronous , i am looking for synchronous write operation. Please help me if anyone has faced such issue.InfluxDB version - 0.194