use local blobstore path util function
This commit is contained in:
parent
799d9de001
commit
e3eb3be2e3
|
@ -1,4 +1,4 @@
|
|||
use golgi::Sbot;
|
||||
use golgi::{blobs, Sbot};
|
||||
use peach_lib::sbot::{SbotConfig, SbotStatus};
|
||||
use rocket::serde::Serialize;
|
||||
|
||||
|
@ -105,7 +105,7 @@ impl ProfileContext {
|
|||
|
||||
// determine the path to the blob defined by the value of `context.image`
|
||||
if let Some(ref blob_id) = context.image {
|
||||
context.blob_path = match sbot_client.get_blob_path(&blob_id).await {
|
||||
context.blob_path = match blobs::get_blob_path(&blob_id) {
|
||||
Ok(id) => Some(id),
|
||||
Err(_) => None,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue