mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 17:32:56 +00:00
spans
This commit is contained in:
@@ -20,12 +20,14 @@ use std::io::{Error, ErrorKind};
|
||||
|
||||
impl<'a> BlockCursor<'a> {
|
||||
/// Read a blob into a new buffer.
|
||||
#[tracing::instrument(skip_all, fields(%offset), level = tracing::Level::DEBUG)]
|
||||
pub async fn read_blob(
|
||||
&self,
|
||||
offset: u64,
|
||||
ctx: &RequestContext,
|
||||
) -> Result<Vec<u8>, std::io::Error> {
|
||||
let mut buf = Vec::new();
|
||||
tracing::debug!("reading blob");
|
||||
self.read_blob_into_buf(offset, &mut buf, ctx).await?;
|
||||
Ok(buf)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user