fix(deps): bound SQLx pool maintenance and reserve idle counters

This commit is contained in:
bsodfather committed 2026-10-04 23:57:40 +03:00
1 parent 7aa854de26
commit 284eb8180e
113 files changed
+21092 -2

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
pub trait ProtocolEncode<'en, Context = ()> {
fn encode(&self, buf: &mut Vec<u8>) -> Result<(), crate::Error>
where
Self: ProtocolEncode<'en, ()>,
{
self.encode_with(buf, ())
}
fn encode_with(&self, buf: &mut Vec<u8>, context: Context) -> Result<(), crate::Error>;
}
impl<C> ProtocolEncode<'_, C> for &'_ [u8] {
fn encode_with(&self, buf: &mut Vec<u8>, _context: C) -> Result<(), crate::Error> {
buf.extend_from_slice(self);
Ok(())
}
}