| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -225,7 +225,7 @@ BindingData::BindingData(Realm* realm, Local<Object> object) | |||
| 225 | 225 | ||
| 226 | 226 | SessionManager& BindingData::session_manager() { | |
| 227 | 227 | if (!session_manager_) { | |
| 228 | - session_manager_ = std::make_unique<SessionManager>(env()); | ||
| 228 | + session_manager_ = std::make_unique<SessionManager>(); | ||
| 229 | 229 | } | |
| 230 | 230 | return *session_manager_; | |
| 231 | 231 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,10 +10,6 @@ | |||
| 10 | 10 | ||
| 11 | 11 | namespace node::quic { | |
| 12 | 12 | ||
| 13 | - SessionManager::SessionManager(Environment* env) : env_(env) {} | ||
| 14 | - | ||
| 15 | - SessionManager::~SessionManager() = default; | ||
| 16 | - | ||
| 17 | 13 | BaseObjectPtr<Session> SessionManager::FindSession(const CID& cid) { | |
| 18 | 14 | // Direct SCID match. | |
| 19 | 15 | auto it = sessions_.find(cid); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,8 +24,8 @@ class Session; | |||
| 24 | 24 | // It is not exposed to JavaScript. | |
| 25 | 25 | class SessionManager final { | |
| 26 | 26 | public: | |
| 27 | - explicit SessionManager(Environment* env); | ||
| 28 | - ~SessionManager(); | ||
| 27 | + explicit SessionManager() = default; | ||
| 28 | + ~SessionManager() = default; | ||
| 29 | 29 | ||
| 30 | 30 | // Session routing. The sessions_ map holds BaseObjectPtr<Session> (owning | |
| 31 | 31 | // references). SessionManager is the single authority for session ownership. | |
@@ -78,8 +78,6 @@ class SessionManager final { | |||
| 78 | 78 | bool is_empty() const; | |
| 79 | 79 | ||
| 80 | 80 | private: | |
| 81 | - Environment* env_; | ||
| 82 | - | ||
| 83 | 81 | // The sessions_ map holds strong owning references keyed by locally- | |
| 84 | 82 | // generated SCIDs. This is the single source of truth for session | |
| 85 | 83 | // ownership. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments