MCPcopy Create free account
hub / github.com/chatmail/core / put

Method put

src/sql/pool.rs:80–84  ·  view source on GitHub ↗

Puts a connection into the pool. The connection could be new or returned back.

(&self, connection: Connection)

Source from the content-addressed store, hash-verified

78 ///
79 /// The connection could be new or returned back.
80 fn put(&self, connection: Connection) {
81 let mut connections = self.connections.lock();
82 connections.push(connection);
83 drop(connections);
84 }
85
86 /// Retrieves a connection from the pool.
87 ///

Callers 15

_run_stdout_threadMethod · 0.80
ac_process_ffi_eventMethod · 0.80
ac_process_ffi_eventMethod · 0.80
ac_process_ffi_eventMethod · 0.80
report_funcFunction · 0.80
test_basic_statesMethod · 0.80
ac_incoming_messageMethod · 0.80
ac_message_deliveredMethod · 0.80

Calls

no outgoing calls

Tested by 9

_run_stdout_threadMethod · 0.64
report_funcFunction · 0.64
test_basic_statesMethod · 0.64
ac_incoming_messageMethod · 0.64
ac_message_deliveredMethod · 0.64
ac_outgoing_messageMethod · 0.64