summaryrefslogtreecommitdiff
path: root/src/node_http2.h
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2018-10-08 08:38:02 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-10-11 05:21:18 +0200
commit972d0beb591859a1a0df59a3d1818493a6132bf5 (patch)
treea4b0911b53abd6158dd16fc8518041fd275afe62 /src/node_http2.h
parent59c7df4a1099ea904de635c6357c08878dfc7093 (diff)
downloadandroid-node-v8-972d0beb591859a1a0df59a3d1818493a6132bf5.tar.gz
android-node-v8-972d0beb591859a1a0df59a3d1818493a6132bf5.tar.bz2
android-node-v8-972d0beb591859a1a0df59a3d1818493a6132bf5.zip
http2: make Http2Settings constructors delegate
This commit extracts the common code in the existing Http2Settings constructors into a private constructor, allowing the existing ones to delegate to the private constructor it and avoid code duplication. PR-URL: https://github.com/nodejs/node/pull/23326 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'src/node_http2.h')
-rw-r--r--src/node_http2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_http2.h b/src/node_http2.h
index 8ecca63aeb..4dc33d84c2 100644
--- a/src/node_http2.h
+++ b/src/node_http2.h
@@ -1136,6 +1136,7 @@ class Http2Session::Http2Settings : public AsyncWrap {
get_setting fn);
private:
+ Http2Settings(Environment* env, Http2Session* session, uint64_t start_time);
void Init();
Http2Session* session_;
uint64_t startTime_;