Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

Commit

Permalink
Fix memory cache = false on start issue
Browse files Browse the repository at this point in the history
  • Loading branch information
EnoRage committed Aug 3, 2020
1 parent bf61784 commit 6447743
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ func main() {
w.AddOperation(c, configuration.RestAPI.UpdateTime.Tickers, w.SaveTickersToMemory)

c.Start()
}

if memoryCache.GetLenOfSavedItems() <= 0 {
panic("no items in memory cache")
if memoryCache.GetLenOfSavedItems() <= 0 {
panic("no items in memory cache")
}
}

if err := internal.InitAPI(engine, tickers, charts, info, configuration); err != nil {
Expand Down

0 comments on commit 6447743

Please sign in to comment.