Skip to content
#

dht

Here are 355 public repositories matching this topic...

atomashpolskiy
atomashpolskiy commented Dec 16, 2019

Because in CliClient.resume() we don't account for the case, when there is an exception in one of the async processing stages:

void resume() {
	...
	try {
		client.startAsync(state -> {
			printer.ifPresent(p -> p.print(state));
			if (!options.shouldSeedAfterDownloaded() && state.getPiecesRemaining() == 0) {
				runtime.shutdown();
			}
		}, 1000); // <-- CompletableFuture.w
pdaoust
pdaoust commented Apr 10, 2020

Steps to reproduce:

  1. hc init my-dna
  2. cd my-dna
  3. hc generate zomes/kebab-case
  4. hc package

Output:

> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && echo $CARGO_TARGET_DIR 
"CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} && echo $CARGO_TARGET_DIR "
/home/paul/target
> CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-/tmp/my_first_app/target} 
jagerman
jagerman commented Jan 14, 2020

Currently lokinet uses llarp_time_t (which is milliseconds) everywhere for times. Part of the justification was that it makes serialization easier, but conversely it makes other parts of the code a bit more complicated.

It would be nice to refactor so that std::chrono duration types get used instead (for compiler-defined duration cast math), being mindful of the existing serialization requir

Improve this page

Add a description, image, and links to the dht topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the dht topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.