Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cf347cd

Browse filesBrowse files
committed
fix: update examples
1 parent 9866a89 commit cf347cd
Copy full SHA for cf347cd

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎examples/archive_async/src/main.rs

Copy file name to clipboardExpand all lines: examples/archive_async/src/main.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#![forbid(unsafe_code)]
22
#![deny(clippy::pedantic)]
33

4-
use postgresql_archive::{extract, get_archive, Result, LATEST};
4+
use postgresql_archive::{extract, get_archive, Result, DEFAULT_RELEASES_URL, LATEST};
55

66
#[tokio::main]
77
async fn main() -> Result<()> {
8-
let (archive_version, archive) = get_archive(&LATEST).await?;
8+
let (archive_version, archive) = get_archive(DEFAULT_RELEASES_URL, &LATEST).await?;
99
let out_dir = tempfile::tempdir()?.into_path();
1010
extract(&archive, &out_dir).await?;
1111
println!(

‎examples/archive_sync/src/main.rs

Copy file name to clipboardExpand all lines: examples/archive_sync/src/main.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
#![deny(clippy::pedantic)]
33

44
use postgresql_archive::blocking::{extract, get_archive};
5-
use postgresql_archive::{Result, LATEST};
5+
use postgresql_archive::{Result, DEFAULT_RELEASES_URL, LATEST};
66

77
fn main() -> Result<()> {
8-
let (archive_version, archive) = get_archive(&LATEST)?;
8+
let (archive_version, archive) = get_archive(DEFAULT_RELEASES_URL, &LATEST)?;
99
let out_dir = tempfile::tempdir()?.into_path();
1010
extract(&archive, &out_dir)?;
1111
println!(

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.