Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandSherwin committed Dec 4, 2024
1 parent 0e9989f commit 7f1326d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ jobs:
node-path: target/release/antnode
platform: ${{ matrix.os }}
build: true
- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3

- name: Check if ANT_PEERS and EVM_NETWORK are set
shell: bash
Expand Down
7 changes: 5 additions & 2 deletions ant-bootstrap/src/cache_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,11 @@ impl BootstrapCacheStore {
}

// Create a temporary file in the same directory as the cache file
let temp_dir = std::env::temp_dir();
let temp_file = NamedTempFile::new_in(&temp_dir)?;
let temp_file = NamedTempFile::new_in(
self.cache_path
.parent()
.ok_or(Error::CouldNotObtainDataDir)?,
)?;

// Write data to temporary file
serde_json::to_writer_pretty(&temp_file, &self.data)?;
Expand Down

0 comments on commit 7f1326d

Please sign in to comment.