Fix a naming mistake

This commit is contained in:
Zahary Karadjov 2022-01-20 18:29:01 +02:00
commit e2e83fa27b

View file

@ -854,7 +854,7 @@ when fsAsyncSupport:
let s = OutputStream sp let s = OutputStream sp
flushImpl(s, fsAwait, writeAsync, flushAsync) flushImpl(s, fsAwait, writeAsync, flushAsync)
proc flushAsync*(s: AsyncOutputStream) {.async.} = proc flushSync*(s: AsyncOutputStream) {.async.} =
flush s flush s
template close*(sp: AsyncOutputStream) = template close*(sp: AsyncOutputStream) =
@ -864,6 +864,6 @@ when fsAsyncSupport:
if s.closeFut != nil: if s.closeFut != nil:
fsAwait s.closeFut fsAwait s.closeFut
proc closeAsync*(s: AsyncOutputStream) {.async.} = proc closeSync*(s: AsyncOutputStream) {.async.} =
close s close s