Remove all settings which are not implemented (#73)
* Remove all settings which are not implemented * Add support for migrating config files from version 0 -> 1 Add basic unittests for the config file migration * Update the config file used by travis * Fix typos in console log messages * Improve the comment * Fix type of limit * Set informed consent to true in the travis config
This commit is contained in:
parent
e5248d632b
commit
8a27de6c7d
9 changed files with 197 additions and 264 deletions
3
ooni.go
3
ooni.go
|
|
@ -73,6 +73,9 @@ func (c *Context) Init() error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err = c.Config.MaybeMigrate(); err != nil {
|
||||
return errors.Wrap(err, "migrating config")
|
||||
}
|
||||
|
||||
c.dbPath = utils.DBDir(c.Home, "main")
|
||||
log.Debugf("Connecting to database sqlite3://%s", c.dbPath)
|
||||
|
|
|
|||
Loading…
Reference in a new issue