remove unneeded imports; make ControlMessage's fields public

This commit is contained in:
Christian Ulrich 2020-06-19 15:21:42 +02:00
parent aca6888011
commit b566436ce5
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 4 additions and 6 deletions

View File

@ -8,8 +8,6 @@ from sequtils import
map,
foldl
from posix import
SOL_SOCKET,
SCM_RIGHTS,
EINTR,
EWOULDBLOCK,
EAGAIN,
@ -52,10 +50,10 @@ proc asyncExecCmd*(command: string): Future[int] =
addEvent(event, callback)
return future
type ControlMessage = object
level: int
msgType: int
data: string
type ControlMessage* = object
level*: int
msgType*: int
data*: string
proc asyncSendMsg*(fd: AsyncFD, data: string,
cmsgs: seq[ControlMessage] = @[]): Future[void] =