0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 10:08:56 +02:00

ircd::server: Move conf item into namespace; minor reorg.

This commit is contained in:
Jason Volk 2020-11-02 12:16:51 -08:00
parent a6d47ccfcd
commit b4613b8132
2 changed files with 10 additions and 6 deletions

View file

@ -25,8 +25,6 @@ namespace ircd::server
IRCD_EXCEPTION(error, buffer_overrun);
IRCD_EXCEPTION(error, unavailable);
IRCD_EXCEPTION(error, canceled);
extern log::log log;
}
#include "tag.h"

View file

@ -8,10 +8,12 @@
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
#pragma GCC visibility push(hidden)
namespace ircd::server
{
// Internal state
ctx::dock dock; // internal semaphore
extern log::log log;
extern ctx::dock dock;
extern conf::item<seconds> close_all_timeout;
// Internal util
template<class F> static size_t accumulate_peers(F&&);
@ -23,6 +25,7 @@ namespace ircd::server
static decltype(ircd::server::peers)::iterator
create(const net::hostport &, decltype(peers)::iterator &);
}
#pragma GCC visibility pop
decltype(ircd::server::log)
ircd::server::log
@ -30,8 +33,11 @@ ircd::server::log
"server", 'S'
};
ircd::conf::item<ircd::seconds>
close_all_timeout
decltype(ircd::server::dock)
ircd::server::dock;
decltype(ircd::server::close_all_timeout)
ircd::server::close_all_timeout
{
{ "name", "ircd.server.close_all_timeout" },
{ "default", 2L },