ipfs/kubo

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

Open

#3354 aperta il 4 nov 2016

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)Go (2725 fork)batch import
exp/experthelp wantedkind/bugstatus/deferredtopic/api

Metriche repository

Star
 (13.906 star)
Metriche merge PR
 (Merge medio 4g 2h) (28 PR mergiate in 30 g)

Descrizione

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.

Guida contributor