MCPcopy Create free account
hub / github.com/akeranen/the-one / update

Method update

routing/MaxPropRouter.java:288–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286 }
287
288 @Override
289 public void update() {
290 super.update();
291 if (!canStartTransfer() ||isTransferring()) {
292 return; // nothing to transfer or is currently transferring
293 }
294
295 // try messages that could be delivered to final recipient
296 if (exchangeDeliverableMessages() != null) {
297 return;
298 }
299
300 tryOtherMessages();
301 }
302
303 /**
304 * Returns the message delivery cost between two hosts from this host's

Callers

nothing calls this directly

Calls 4

tryOtherMessagesMethod · 0.95
canStartTransferMethod · 0.80
isTransferringMethod · 0.45

Tested by

no test coverage detected