make proc names consistent (#18626)

* rename `endswith` to `endsWith`

* rename
This commit is contained in:
flywind 2021-08-01 19:52:24 +08:00 • committed by GitHub
commit 2bc07554cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 13 additions and 13 deletions

View file

@ -59,7 +59,7 @@ proc readMessages(server: AsyncSocket) {.async.} =
while i < maxResponses:
let (data, fromIp, fromPort) = await recvFrom(server, 16384)
if data.startswith("Message ") and fromIp == "127.0.0.1":
if data.startsWith("Message ") and fromIp == "127.0.0.1":
await sendTo(server, fromIp, fromPort, data)
inc(msgCount)