docs: fix example server library usage

`Listen` now accepts `numKCPInstances`
This commit is contained in:
WofWca 2024-08-18 16:41:23 +04:00 committed by Cecylia Bocovich
parent a6d4570c23
commit 062411143c
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90

View file

@ -130,7 +130,8 @@ func main() {
if err != nil {
log.Printf("error resolving bind address: %s", err.Error())
}
ln, err := transport.Listen(addr)
numKCPInstances := 1
ln, err := transport.Listen(addr, numKCPInstances)
if err != nil {
log.Printf("error opening listener: %s", err.Error())
}