get rid of redundant calls to RequestContext::saveContext()
[folly.git] / folly / io / async / EventBase.cpp
index b0e1eda68ae8332d4020d1282d852dcec1868ac1..340b2100d3d7a0826a3e43d6b95e63898422cbdd 100644 (file)
@@ -114,7 +114,6 @@ EventBase::EventBase(bool enableTimeMeasurement)
   }
   VLOG(5) << "EventBase(): Created.";
   initNotificationQueue();
-  RequestContext::saveContext();
 }
 
 // takes ownership of the event_base
@@ -140,7 +139,6 @@ EventBase::EventBase(event_base* evb, bool enableTimeMeasurement)
     throw std::invalid_argument("EventBase(): event base cannot be nullptr");
   }
   initNotificationQueue();
-  RequestContext::saveContext();
 }
 
 EventBase::~EventBase() {