Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ connection - and wrapping a fetcher is how you cancel a download in flight (see
use ltk_mimir_cache::{HashStore, ReleaseSource, UpdateOptions, UpdateOutcome, UreqFetch};

let store = HashStore::discover()?;
let remote = UreqFetch::new(ReleaseSource::github("LeagueToolkit/mimir"));
let remote = UreqFetch::new(ReleaseSource::github("LeagueToolkit/mimir-tables"));

match store.update(&remote, UpdateOptions::default())? {
UpdateOutcome::Completed(report) => println!("installed {:?}", report.installed),
Expand Down
4 changes: 2 additions & 2 deletions crates/ltk_mimir_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ enum Command {
/// Say what an update would do, without downloading or locking anything.
Check {
/// GitHub repository whose latest release ships the tables.
#[arg(long, default_value = "LeagueToolkit/mimir")]
#[arg(long, default_value = "LeagueToolkit/mimir-tables")]
repo: String,

/// Base URL serving `manifest.json` and the `.lhdb` assets (a mirror);
Expand All @@ -139,7 +139,7 @@ enum Command {

Update {
/// GitHub repository whose latest release ships the tables.
#[arg(long, default_value = "LeagueToolkit/mimir")]
#[arg(long, default_value = "LeagueToolkit/mimir-tables")]
repo: String,

/// Base URL serving `manifest.json` and the `.lhdb` assets (a mirror);
Expand Down
12 changes: 7 additions & 5 deletions docs/CONSUMERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,10 @@ miss stays in your tool - mimir returns `Option`, it never invents a hex string.

## Getting and updating tables

Tables are published as GitHub release assets: each release carries every table as an
immutable `<table>-<version>.lhdb` plus the `manifest.json` describing them
Tables are published as GitHub release assets of
[LeagueToolkit/mimir-tables](https://github.com/LeagueToolkit/mimir-tables): each release
carries every table as an immutable `<table>-<version>.lhdb` plus the `manifest.json`
describing them
(per-table filename, sha256, entry count, key width, download size, and input
provenance). `releases/latest/download/manifest.json` is the stable URL for the
current set.
Expand All @@ -265,7 +267,7 @@ use ltk_mimir_cache::{HashStore, UpdateOptions, UpdateOutcome};
let store = HashStore::discover()?;
let fetch = |filename: &str| -> Result<Vec<u8>, MyClientError> {
let url = format!(
"https://github.com/LeagueToolkit/mimir/releases/latest/download/{filename}"
"https://github.com/LeagueToolkit/mimir-tables/releases/latest/download/{filename}"
);
my_http_get(&url) // reqwest, ureq, curl - your choice; your error type
};
Expand Down Expand Up @@ -381,7 +383,7 @@ cannot borrow the filename, so build owned state before the `async move` block:
```rust
let fetch = |filename: &str| {
let url = format!(
"https://github.com/LeagueToolkit/mimir/releases/latest/download/{filename}"
"https://github.com/LeagueToolkit/mimir-tables/releases/latest/download/{filename}"
);
async move {
let response = client.get(&url).send().await?.error_for_status()?;
Expand Down Expand Up @@ -436,7 +438,7 @@ while another process is midway through an update.
use ltk_mimir_cache::{HashStore, ReleaseSource, UreqFetch};

let store = HashStore::discover()?;
let remote = UreqFetch::new(ReleaseSource::github("LeagueToolkit/mimir"));
let remote = UreqFetch::new(ReleaseSource::github("LeagueToolkit/mimir-tables"));

let report = store.check(&remote)?;
if !report.is_up_to_date() {
Expand Down
Loading