commit
857afc1006
|
@ -250,7 +250,8 @@ The **InfluxDB** client also supports writing over UDP.
|
|||
```go
|
||||
func WriteUDP() {
|
||||
// Make client
|
||||
c, err := client.NewUDPClient("localhost:8089")
|
||||
// PayloadSize is default value(512)
|
||||
c, err := client.NewUDPClient(client.UDPConfig{Addr: "localhost:8089"})
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue