change formatting of long lines
This commit is contained in:
parent
fd1ec1aeaa
commit
d1d4019af0
|
@ -46,8 +46,7 @@ proc asyncExecCmd*(command: string): Future[int] =
|
||||||
addEvent(event, callback)
|
addEvent(event, callback)
|
||||||
return future
|
return future
|
||||||
|
|
||||||
proc asyncSendMsg*(fd: AsyncFD,
|
proc asyncSendMsg*(fd: AsyncFD, data: string,
|
||||||
data: string,
|
|
||||||
ancillaryData: Option[AsyncFD] = none(AsyncFD)): Future[void] =
|
ancillaryData: Option[AsyncFD] = none(AsyncFD)): Future[void] =
|
||||||
var retFuture = newFuture[void]("asyncSendMsg")
|
var retFuture = newFuture[void]("asyncSendMsg")
|
||||||
|
|
||||||
|
@ -93,10 +92,11 @@ proc asyncSendMsg*(fd: AsyncFD,
|
||||||
return retFuture
|
return retFuture
|
||||||
|
|
||||||
proc asyncRecvMsg*(fd: AsyncFD,
|
proc asyncRecvMsg*(fd: AsyncFD,
|
||||||
size: int): Future[tuple[data: string, ancillaryFd: Option[AsyncFD]]] =
|
size: int): Future[tuple[data: string,
|
||||||
var retFuture = newFuture[
|
ancillaryData: Option[AsyncFD]]] =
|
||||||
tuple[data: string, ancillaryFd: Option[AsyncFD]]
|
var retFuture =
|
||||||
]("asyncRecvMsg")
|
newFuture[tuple[data: string,
|
||||||
|
ancillaryData: Option[AsyncFD]]]("asyncRecvMsg")
|
||||||
|
|
||||||
proc cb(sock: AsyncFD): bool =
|
proc cb(sock: AsyncFD): bool =
|
||||||
result = true
|
result = true
|
||||||
|
|
Loading…
Reference in New Issue