mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
67a756de93
Summary: This tweaks the main.cpp and EdenServer.cpp code so that we can avoid having separate internal and open source builds of the eden/fs/service:server library. Only one small function is different between the two builds. This updates the code so that this function is only used from main.cpp, instead of being used inside EdenServer.cpp. Reviewed By: wez Differential Revision: D4889721 fbshipit-source-id: 97abda92c36752516fb8a8e73b4cf50580db8d79
21 lines
543 B
C++
21 lines
543 B
C++
/*
|
|
* Copyright (c) 2016-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
*/
|
|
#include "eden/fs/service/EdenServer.h"
|
|
|
|
#include <thrift/lib/cpp2/server/ThriftServer.h>
|
|
|
|
namespace facebook {
|
|
namespace eden {
|
|
void runServer(const EdenServer& server) {
|
|
server.getServer()->serve();
|
|
}
|
|
}
|
|
} // facebook::eden
|