Skip to content

Commit

Permalink
Update Registry post release (#6841)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Nov 18, 2024
1 parent d64e46b commit 1da786f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 2 additions & 0 deletions backend/canisters/registry/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [unreleased]

## [[2.0.1455](https://github.com/open-chat-labs/open-chat/releases/tag/v2.0.1455-registry)] - 2024-11-15

### Added

- Add an error log with http endpoint ([#6608](https://github.com/open-chat-labs/open-chat/pull/6608))
Expand Down
3 changes: 0 additions & 3 deletions backend/canisters/registry/impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,9 @@ struct Data {
tokens: Tokens,
nervous_systems: NervousSystems,
failed_sns_launches: HashSet<CanisterId>,
#[serde(default)]
swap_providers: Timestamped<HashSet<ExchangeId>>,
message_filters: MessageFilters,
#[serde(default)]
total_supply: Timestamped<u128>,
#[serde(default)]
circulating_supply: Timestamped<u128>,
rng_seed: [u8; 32],
test_mode: bool,
Expand Down
7 changes: 3 additions & 4 deletions backend/canisters/registry/impl/src/lifecycle/post_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ fn post_upgrade(args: Args) {
let memory = get_upgrades_memory();
let reader = get_reader(&memory);

let (data, logs, traces): (Data, Vec<LogEntry>, Vec<LogEntry>) = msgpack::deserialize(reader).unwrap();
let (data, errors, logs, traces): (Data, Vec<LogEntry>, Vec<LogEntry>, Vec<LogEntry>) =
msgpack::deserialize(reader).unwrap();

// TODO: After release change this to
// let (data, errors, logs, traces): (Data, Vec<LogEntry>, Vec<LogEntry>, Vec<LogEntry>) = msgpack::deserialize(reader).unwrap();
canister_logger::init_with_logs(data.test_mode, Vec::new(), logs, traces);
canister_logger::init_with_logs(data.test_mode, errors, logs, traces);

let env = init_env(data.rng_seed);
init_cycles_dispenser_client(data.cycles_dispenser_canister_id, data.test_mode);
Expand Down

0 comments on commit 1da786f

Please sign in to comment.