MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / drop

Method drop

nodedb-test-support/src/cluster_harness/node/lifecycle.rs:360–371  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

358/// in milliseconds instead of minutes.
359impl Drop for TestClusterNode {
360 fn drop(&mut self) {
361 self.pg_shutdown_bus.initiate();
362 let _ = self.cluster_shutdown_tx.send(true);
363 let _ = self.poller_shutdown_tx.send(true);
364 // `core_stop_tx` is a std mpsc Sender; dropping it disconnects
365 // the receiver the spawn_blocking data-plane loop polls, so
366 // no explicit signal needed here.
367 self._conn_handle.abort();
368 self._pg_handle.abort();
369 self._poller_handle.abort();
370 self._core_handle.abort();
371 }
372}
373
374pub(super) fn pg_error_detail(e: &tokio_postgres::Error) -> String {

Callers

nothing calls this directly

Calls 3

initiateMethod · 0.80
sendMethod · 0.45
abortMethod · 0.45

Tested by

no test coverage detected