Skip to content

Commit 5095153

Browse files
Removed dead code
1 parent c48318c commit 5095153

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "uquik",
3-
"version": "1.0.32",
3+
"version": "1.0.33",
44
"description": "uQuik HTTP(S) framework",
55
"main": "index.js",
66
"scripts": {
@@ -44,4 +44,4 @@
4444
"eslint-plugin-promise": "^6.0.0",
4545
"nanobench": "^2.1.1"
4646
}
47-
}
47+
}

src/Response.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ class Response extends Writable {
396396
// Attempt to stream the chunk using appropriate uWS.Response chunk serving method
397397
// This will depend on whether a total_size is specified or not
398398
let sent, finished
399-
const lastOffset = this.write_offset
399+
const lastOffset = this.raw_response.getWriteOffset()
400400
if (totalSize) {
401401
// Attempt to stream the current chunk using uWS.tryEnd with a total size
402402
const [ok, done] = this.raw_response.tryEnd(chunk, totalSize)
@@ -616,15 +616,6 @@ class Response extends Writable {
616616
}
617617
}
618618

619-
/**
620-
* Returns the current response body content write offset in bytes.
621-
* Use in conjunction with the drain() offset handler to retry writing failed chunks.
622-
* @returns {Number}
623-
*/
624-
get write_offset () {
625-
return this.completed ? -1 : this.raw_response.getWriteOffset()
626-
}
627-
628619
/* ExpressJS compatibility properties & methods */
629620

630621
/**

0 commit comments

Comments
 (0)