Buffer client CopyData messages (#284)

Buffers CopyData messages and removes buffer clone for the sync message
This commit is contained in:
zainkabani
2023-01-17 20:39:55 -05:00
committed by GitHub
parent 7894bba59b
commit 85ac3ef9a5
4 changed files with 44 additions and 34 deletions

View File

@@ -171,7 +171,7 @@ where
res.put_i32(5);
res.put_u8(b'I');
write_all_half(stream, res).await
write_all_half(stream, &res).await
}
/// Show PgCat version.
@@ -189,7 +189,7 @@ where
res.put_i32(5);
res.put_u8(b'I');
write_all_half(stream, res).await
write_all_half(stream, &res).await
}
/// Show utilization of connection pools for each shard and replicas.
@@ -250,7 +250,7 @@ where
res.put_i32(5);
res.put_u8(b'I');
write_all_half(stream, res).await
write_all_half(stream, &res).await
}
/// Show shards and replicas.
@@ -317,7 +317,7 @@ where
res.put_i32(5);
res.put_u8(b'I');
write_all_half(stream, res).await
write_all_half(stream, &res).await
}
/// Ignore any SET commands the client sends.
@@ -349,7 +349,7 @@ where
res.put_i32(5);
res.put_u8(b'I');
write_all_half(stream, res).await
write_all_half(stream, &res).await
}
/// Shows current configuration.
@@ -395,7 +395,7 @@ where
res.put_i32(5);
res.put_u8(b'I');
write_all_half(stream, res).await
write_all_half(stream, &res).await
}
/// Show shard and replicas statistics.
@@ -455,7 +455,7 @@ where
res.put_i32(5);
res.put_u8(b'I');
write_all_half(stream, res).await
write_all_half(stream, &res).await
}
/// Show currently connected clients
@@ -505,7 +505,7 @@ where
res.put_i32(5);
res.put_u8(b'I');
write_all_half(stream, res).await
write_all_half(stream, &res).await
}
/// Show currently connected servers
@@ -559,5 +559,5 @@ where
res.put_i32(5);
res.put_u8(b'I');
write_all_half(stream, res).await
write_all_half(stream, &res).await
}