remote templated write

This commit is contained in:
Dmitriy Ryajov 2019-08-22 18:03:29 -06:00
parent 5d07145a0a
commit 368176f8d1
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ method write*(s: Connection, pbytes: pointer, nbytes: int) {.async.} =
method write*(s: Connection, msg: string, msglen = -1) {.async.} =
result = s.stream.write(msg, msglen)
method write*[T](s: Connection, msg: seq[T], msglen = -1) {.async.} =
method write*(s: Connection, msg: seq[byte], msglen = -1) {.async.} =
result = s.stream.write(msg, msglen)
method close*(s: Connection) {.async.} =