change formatting of long lines

This commit is contained in:
Christian Ulrich 2020-06-14 22:40:33 +02:00
parent fd1ec1aeaa
commit d1d4019af0
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 6 additions and 6 deletions

View File

@ -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