change iter constructore back to new

This commit is contained in:
Dmitriy Ryajov 2023-09-14 18:19:14 -06:00
parent 59f1f0bc61
commit 25678b2be2
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -33,7 +33,7 @@ iterator items*(q: QueryIter): Future[?!QueryResponse] =
proc defaultDispose(): Future[?!void] {.upraises: [], gcsafe, async.} =
return success()
proc init*(T: type QueryIter, dispose = defaultDispose): T =
proc new*(T: type QueryIter, dispose = defaultDispose): T =
QueryIter(dispose: dispose)
proc init*(