Skip to content

Commit ee53ee8

Browse files
committed
replaced X-PINNIG_SERVICE with JWT from user
1 parent 5ad957e commit ee53ee8

File tree

6 files changed

+171
-144
lines changed

6 files changed

+171
-144
lines changed

crates/fula-cli/src/handlers/multipart.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ pub async fn complete_multipart_upload(
150150

151151
// Check balance BEFORE completing the upload (if remote pinning is configured)
152152
let can_upload = check_can_upload(
153-
&headers,
154153
state.config.storage_api_url.as_deref(),
154+
Some(&session.jwt_token),
155155
).await?;
156156

157157
if !can_upload {

crates/fula-cli/src/handlers/object.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ pub async fn put_object(
3232

3333
// Check balance BEFORE storing data (if remote pinning is configured)
3434
let can_upload = check_can_upload(
35-
&headers,
3635
state.config.storage_api_url.as_deref(),
36+
Some(&session.jwt_token),
3737
).await?;
3838

3939
if !can_upload {

0 commit comments

Comments
 (0)