comment on ds addr

This commit is contained in:
Jaremy Creechley 2023-09-18 15:10:09 -07:00
parent 27adbeb77e
commit 1e2ea79369
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300

View File

@ -62,8 +62,8 @@ proc new*[T](
ds: Datastore, ds: Datastore,
): ref TaskCtx[T] = ): ref TaskCtx[T] =
result = (ref TaskCtx[T])() result = (ref TaskCtx[T])()
result.ds = unsafeAddr(ds) ## result.ds = unsafeAddr(ds) ##\
## doing this appears to break. previously it was using `addr(ds)` ## doing this appears to break things. previously it was using `addr(ds)`
## and reverting to those lets the tests get further. ## and reverting to those lets the tests get further.
## ##
## however, that seems to mean that `addr(ds)` we're taking the ## however, that seems to mean that `addr(ds)` we're taking the