ipfs/kubo

Config set fails if there is entry in config that is integer bigger than 1e6

Open

#3.354 geöffnet am 4. Nov. 2016

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (2.725 Forks)batch import
exp/experthelp wantedkind/bugstatus/deferredtopic/api

Repository-Metriken

Stars
 (13.906 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 4T 2h) (28 gemergte PRs in 30 T)

Beschreibung

I have BloomSize set to 1048576, if I then try to do any config call, example

ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'

I get:

Error: failed to set config value: Failure to decode config: json: cannot unmarshal number 1.048576e+06 into Go value of type int (maybe use --json?)

The integer is being transformed into floating point at some point.

Contributor Guide