diff --git a/doc/api/quic.md b/doc/api/quic.md index ecd008730e..3b58230ded 100644 --- a/doc/api/quic.md +++ b/doc/api/quic.md @@ -1118,8 +1118,8 @@ added: REPLACEME * `length` {number} The amount of data from the fd to send. Default: `-1`. -Instead of using a `Quicstream` as a writable stream, send data from a given file -descriptor. +Instead of using a `Quicstream` as a writable stream, send data from a given +file descriptor. If `offset` is set to a non-negative number, reading starts from that position and the file offset will not be advanced. @@ -1146,8 +1146,8 @@ added: REPLACEME * `length` {number} The amount of data from the fd to send. Default: `-1`. -Instead of using a `QuicStream` as a writable stream, send data from a given file -path. +Instead of using a `QuicStream` as a writable stream, send data from a given +file path. The `options.onError` callback will be called if the file could not be opened. If `offset` is set to a non-negative number, reading starts from that position. diff --git a/lib/internal/quic/core.js b/lib/internal/quic/core.js index ae75d82caf..c12dbd156e 100644 --- a/lib/internal/quic/core.js +++ b/lib/internal/quic/core.js @@ -21,7 +21,6 @@ const { validateQuicClientSessionOptions, validateQuicSocketOptions, } = require('internal/quic/util'); -const { validateNumber } = require('internal/validators'); const util = require('util'); const assert = require('internal/assert'); const EventEmitter = require('events');