Skip to content

Commit

Permalink
comment out heartbeat
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgenbuilder committed Dec 19, 2024
1 parent 0587ac1 commit f216a53
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions config/canisters/5-the-hierophant.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Legend 5: The Hierophant",
"supply": 110,
"flavour": "...",
"artists": "vec { \"Colin Arc\"; \"The Saxon Storyteller\"; \"Jorgen Builder\" }",
"description": "Collectible Major Arcana cards celebrating the enduring spirit of tarot, the innervating virtues of web3, and the first deck developed by Saga Tarot."
}
"name": "Legend 5: The Hierophant",
"supply": 110,
"flavour": "...",
"artists": "vec { \"Colin Arc\"; \"The Saxon Storyteller\"; \"Jorgen Builder\" }",
"description": "Collectible Major Arcana cards celebrating the enduring spirit of tarot, the innervating virtues of web3, and the first deck developed by Saga Tarot."
}
2 changes: 1 addition & 1 deletion dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@
}
},
"version": 1
}
}
20 changes: 10 additions & 10 deletions src/main.mo
Original file line number Diff line number Diff line change
Expand Up @@ -193,18 +193,18 @@ shared ({ caller = creator }) actor class LegendsNFT(
//////////////


system func heartbeat() : async () {
if (not s_heartbeatOn) return;
// system func heartbeat() : async () {
// if (not s_heartbeatOn) return;

// Limit heartbeats
let now = Time.now();
if (now - s_heartbeatLastBeat < s_heartbeatIntervalSeconds * 1_000_000_000) return;
s_heartbeatLastBeat := now;
// // Limit heartbeats
// let now = Time.now();
// if (now - s_heartbeatLastBeat < s_heartbeatIntervalSeconds * 1_000_000_000) return;
// s_heartbeatLastBeat := now;

// Run jobs
await _Entrepot.cronDisbursements();
await _Entrepot.cronSettlements();
};
// // Run jobs
// await _Entrepot.cronDisbursements();
// await _Entrepot.cronSettlements();
// };

public shared ({ caller }) func heartbeatSetInterval (
i : Nat
Expand Down

0 comments on commit f216a53

Please sign in to comment.