Increase max db limit

Increase wallet startup time allotment for big channels
Set FPS to float instead of int
This commit is contained in:
Mark Beamer Jr 2020-07-31 23:28:19 -04:00 committed by Alex Grintsvayg
parent 13543b20e9
commit fc18151d77
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5
3 changed files with 3 additions and 3 deletions

View file

@ -121,7 +121,7 @@ type Format struct {
Ext string `json:"ext"` Ext string `json:"ext"`
FragmentBaseURL string `json:"fragment_base_url,omitempty"` FragmentBaseURL string `json:"fragment_base_url,omitempty"`
Filesize interface{} `json:"filesize"` Filesize interface{} `json:"filesize"`
Fps int `json:"fps"` Fps float64 `json:"fps"`
Fragments []struct { Fragments []struct {
Path string `json:"path"` Path string `json:"path"`
Duration float64 `json:"duration,omitempty"` Duration float64 `json:"duration,omitempty"`

View file

@ -424,7 +424,7 @@ func (s *Sync) waitForDaemonStart() error {
if err == nil && status.StartupStatus.Wallet && status.IsRunning { if err == nil && status.StartupStatus.Wallet && status.IsRunning {
return nil return nil
} }
if time.Since(beginTime).Minutes() > 60 { if time.Since(beginTime).Minutes() > 120 {
s.grp.Stop() s.grp.Stop()
return errors.Err("the daemon is taking too long to start. Something is wrong") return errors.Err("the daemon is taking too long to start. Something is wrong")
} }

View file

@ -255,7 +255,7 @@ func CleanupLbrynet() error {
} }
return errors.Err(err) return errors.Err(err)
} }
dbSizeLimit := int64(1 * 1024 * 1024 * 1024) dbSizeLimit := int64(2 * 1024 * 1024 * 1024)
if db.Size() > dbSizeLimit { if db.Size() > dbSizeLimit {
files, err := filepath.Glob(lbryumDir + "/blockchain.db*") files, err := filepath.Glob(lbryumDir + "/blockchain.db*")
if err != nil { if err != nil {