File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ proc `%`*(m: MutableDatum): JsonNode {.thread.} =
3535 result = %* {" $reql_type$" : " BINARY" , " data" : m.binary.data}
3636 of R_TIME :
3737 var tz =
38- if m.time.timezone == 0 :
38+ if m.time.timezone == utc () :
3939 " +00:00"
4040 else :
4141 m.time.format (" zzz" )
Original file line number Diff line number Diff line change 11import json, threadpool
22import ../ rethinkdb
33
4- var r {.threadvar .}: RethinkClient
54setMaxPoolSize (64 )
65
76proc insert (c: int ) =
8- r = newRethinkClient ()
9- r.connect ()
10- r.use (" test" )
11- r.table (" test" ).insert (&* {" c" : c}).run (r, noreply= true , durability= " soft" )
12- r.close ()
7+ {.gcsafe .}:
8+ var r = newRethinkClient ()
9+ r.connect ()
10+ r.use (" test" )
11+ r.table (" test" ).insert (&* {" c" : c}).run (r, noreply= true , durability= " soft" )
12+ r.close ()
1313
1414for x in 0 .. 1_000 :
1515 spawn insert (x)
You can’t perform that action at this time.
0 commit comments