Skip to content

Commit

Permalink
Merge pull request #121 from ineiti/typos
Browse files Browse the repository at this point in the history
NarWhal it is
  • Loading branch information
ineiti authored Sep 9, 2024
2 parents eb2a6e9 + 527fa46 commit 25c0802
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions flbrowser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h3>Fledger</h3>
Fledger is an experiment in a decentralized system running in your browser.
It's goal is to mix things like <a href="https://veilid.com/">Veilid</a>,
<a href="https://ipfs.tech/">IPFS</a>, and something like
<a href="https://github.com/facebookresearch/narwhal">Narhal</a>.
<a href="https://github.com/facebookresearch/narwhal">Narwhal</a>.
</p>
<p>Try it out by clicking on the above tabs to join the Blackboard or the
WebProxy.
Expand Down Expand Up @@ -122,9 +122,9 @@ <h3>WebProxy</h3>
</p>
<p>Or find the code on github: <a href="https://github.com/ineiti/fledger">ineiti/fledger</a></p>
<ul>
<li>Mana: <span id="mana"></span></li>
<li>Total messages: <span id="msgs_system"></span></li>
<li>Local messages: <span id="msgs_local"></span></li>
<li>Mana: <span id="mana"></span></li>
</ul>
<div id="fetching">Fetching node list</div>
<table class="styled-table table" id="table_stats" class="hidden">
Expand Down
12 changes: 6 additions & 6 deletions flbrowser/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ pub fn main() {
web.set_html_id("messages", state.get_msgs());
web.set_html_id("nodes_online", format!("{}", state.nodes_online));
web.set_html_id("nodes_connected", format!("{}", state.nodes_connected));
web.set_html_id("mana", format!("{}", state.mana));
web.set_html_id("msgs_system", format!("{}", state.msgs_system));
web.set_html_id("msgs_local", format!("{}", state.msgs_local));
web.set_html_id("mana", format!("{}", state.mana));
}
wait_ms(1000).await;
}
Expand Down Expand Up @@ -271,8 +271,8 @@ pub struct FledgerState {
states: HashMap<U256, NetworkConnectionState>,
pings: PingStorage,
msgs: FledgerMessages,
pub msgs_system: u32,
pub msgs_local: u32,
pub msgs_system: usize,
pub msgs_local: usize,
pub mana: u32,
pub nodes_online: usize,
pub nodes_connected: usize,
Expand Down Expand Up @@ -314,11 +314,11 @@ impl FledgerState {
info,
nodes_online: node.nodes_online()?.len(),
nodes_connected: node.nodes_connected()?.len(),
msgs: FledgerMessages::new(msgs, &nodes_info.clone().into_values().collect()),
nodes_info,
msgs_system: 0,
msgs_local: 0,
msgs_local: msgs.len(),
mana: 0,
msgs: FledgerMessages::new(msgs, &nodes_info.clone().into_values().collect()),
nodes_info,
states: node.stat.as_ref().unwrap().states.clone(),
pings: node.ping.as_ref().unwrap().storage.clone(),
})
Expand Down

0 comments on commit 25c0802

Please sign in to comment.