pinDht method
inherited
Pin the DHT to ensure it starts and remains running even when there are no active DHT lookups and no DHT-enabled repositories. This is useful to prevent the DHT restarting between the lookups (which could be slow).
Implementation
Future<void> pinDht(
) async {
final request = RequestSessionPinDht(
);
final response = await client.invoke(request);
switch (response) {
case ResponseUnit(): return;
default: throw UnexpectedResponse();
}
}