Skip to content
#

dht

Here are 369 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
buraksezer
buraksezer commented Nov 29, 2020

We need to validate and sanitize the configuration. We already have this feature at some degree, but it's not good enough and poorly implemented. Every configuration struct has its own validator/sanitizer and these functions have to be called before running an Olric node.

Here is a sample. config.Client has its own Sanitize function and constructor.

// NewClient returns a new con
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} 

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.