remove unneeded imports; make ControlMessage's fields public
This commit is contained in:
parent
aca6888011
commit
b566436ce5
|
@ -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] =
|
||||
|
|
Loading…
Reference in New Issue