mirror of https://github.com/status-im/news.git
`strtabs` import is not chronos dependent
This commit is contained in:
parent
efd56e92b9
commit
4efa2c9efc
|
@ -1,6 +1,6 @@
|
||||||
import std/[
|
import std/[
|
||||||
base64, deques, httpcore, nativesockets, net, oids, random, sha1, streams,
|
base64, deques, httpcore, nativesockets, net, oids, random, sha1, streams,
|
||||||
strformat, strutils, uri]
|
strformat, strtabs, strutils, uri]
|
||||||
|
|
||||||
when not declaredInScope(newsUseChronos):
|
when not declaredInScope(newsUseChronos):
|
||||||
# Currently chronos is second class citizen. To use this library in chronos-based
|
# Currently chronos is second class citizen. To use this library in chronos-based
|
||||||
|
@ -62,7 +62,7 @@ when newsUseChronos:
|
||||||
t.closeWait()
|
t.closeWait()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
import std/[asyncdispatch, asynchttpserver, asyncnet, strtabs]
|
import std/[asyncdispatch, asynchttpserver, asyncnet]
|
||||||
type Transport = AsyncSocket
|
type Transport = AsyncSocket
|
||||||
|
|
||||||
const CRLF = "\c\l"
|
const CRLF = "\c\l"
|
||||||
|
|
Loading…
Reference in New Issue