Skip to content

Commit

Permalink
Remove heartbeat which is no longer needed (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Mar 15, 2024
1 parent 3474f4e commit dcc6b1e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 25 deletions.
7 changes: 0 additions & 7 deletions rs/canister/impl/src/lifecycle/heartbeat.rs

This file was deleted.

1 change: 0 additions & 1 deletion rs/canister/impl/src/lifecycle/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
mod heartbeat;
mod init;
mod post_upgrade;
mod pre_upgrade;
Expand Down
4 changes: 0 additions & 4 deletions rs/canister/impl/src/model/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ impl Events {
}
}

pub fn len(&self) -> u64 {
self.events.len()
}

fn convert_to_storable(&mut self, event: IdempotentEvent, index: u64) -> StorableEvent {
StorableEvent {
index,
Expand Down
13 changes: 0 additions & 13 deletions rs/canister/impl/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,6 @@ impl State {
self.events.push(event);
}

pub fn migrate_events(&mut self, count: u32) {
for event in self.events.get(self.events.len(), count as u64) {
self.events.push(IdempotentEvent {
idempotency_key: 0,
name: event.name,
timestamp: event.timestamp,
user: event.user,
source: event.source,
payload: event.payload,
});
}
}

fn anonymize(&self, value: &str) -> String {
// Generates a 32 character string from the input value + the salt
let mut hasher = sha2::Sha256::new();
Expand Down

0 comments on commit dcc6b1e

Please sign in to comment.