ipfs/kubo

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

Open

#3 354 ouverte le 4 nov. 2016

Voir sur GitHub
 (6 commentaires) (0 réactions) (0 assignés)Go (2 725 forks)batch import
exp/experthelp wantedkind/bugstatus/deferredtopic/api

Métriques du dépôt

Stars
 (13 906 stars)
Métriques de merge PR
 (Merge moyen 4j 2h) (28 PRs mergées en 30 j)

Description

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.

Guide contributeur