Skip to content

Commit

Permalink
chore(client): refactor client upload flow
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi committed Jan 10, 2024
1 parent 3cfcdbc commit faa6c7a
Show file tree
Hide file tree
Showing 5 changed files with 362 additions and 217 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -628,16 +628,17 @@ jobs:
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./test_data_1.tar.gz" -r 0
env:
SN_LOG: "all"
timeout-minutes: 60
timeout-minutes: 5

- name: Wait for certain period
run: sleep 300
timeout-minutes: 6

- name: Start a client to upload second file
run: cargo run --bin safe --release -- --log-output-dest=data-dir files upload "./test_data_2.tar.gz" -r 0
env:
SN_LOG: "all"
timeout-minutes: 60
timeout-minutes: 10

- name: Stop the local network and upload logs
if: always()
Expand Down
6 changes: 6 additions & 0 deletions sn_client/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,10 @@ pub enum Error {

#[error("Error occurred while assembling the downloaded chunks")]
FailedToAssembleDownloadedChunks,

#[error("Error occurred when access wallet file")]
FailedToAccessWallet,

#[error("Task completion notification channel is done")]
FailedToReadFromNotificationChannel,
}

0 comments on commit faa6c7a

Please sign in to comment.