Merge pull request #10125 from sangyun-han/master

update UDP client example
pull/9784/merge
Jonathan A. Sternberg 2018-10-01 16:16:06 -05:00 committed by GitHub
commit 857afc1006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -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())
}