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)
|
||||
return future
|
||||
|
||||
proc asyncSendMsg*(fd: AsyncFD,
|
||||
data: string,
|
||||
proc asyncSendMsg*(fd: AsyncFD, data: string,
|
||||
ancillaryData: Option[AsyncFD] = none(AsyncFD)): Future[void] =
|
||||
var retFuture = newFuture[void]("asyncSendMsg")
|
||||
|
||||
|
@ -93,10 +92,11 @@ proc asyncSendMsg*(fd: AsyncFD,
|
|||
return retFuture
|
||||
|
||||
proc asyncRecvMsg*(fd: AsyncFD,
|
||||
size: int): Future[tuple[data: string, ancillaryFd: Option[AsyncFD]]] =
|
||||
var retFuture = newFuture[
|
||||
tuple[data: string, ancillaryFd: Option[AsyncFD]]
|
||||
]("asyncRecvMsg")
|
||||
size: int): Future[tuple[data: string,
|
||||
ancillaryData: Option[AsyncFD]]] =
|
||||
var retFuture =
|
||||
newFuture[tuple[data: string,
|
||||
ancillaryData: Option[AsyncFD]]]("asyncRecvMsg")
|
||||
|
||||
proc cb(sock: AsyncFD): bool =
|
||||
result = true
|
||||
|
|
Loading…
Reference in New Issue