/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2016-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace folly {
ScopedBoundPort::ScopedBoundPort(IPAddress host) {
- ebth_ = folly::make_unique<ScopedEventBaseThread>();
+ ebth_ = std::make_unique<ScopedEventBaseThread>();
ebth_->getEventBase()->runInEventBaseThreadAndWait([&] {
sock_ = AsyncServerSocket::newSocket(ebth_->getEventBase());
sock_->bind(SocketAddress(host, 0));
SocketAddress ScopedBoundPort::getAddress() const {
return sock_->getAddress();
}
-}
+} // namespace folly