-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
some tweaks to prices.go (GetZECPrice, GetCurrentZECPrice)
Simplified locking; there is no need for a read-write mutex, this code is not performance-critical. Removed some of the go routines because they're not needed and the locking and concurrency are easier to reason about without them. NOTE: there is some test code left in here, search for "XXX testing" and remove before committing! This test code makes things happen faster: Instead of fetching prices every 15 minutes, do it every minute. Also, write historical data every minute, instead of once per day. Another change needed is to remove some of the logging. It's good for now during testing, but it's too much for production.
- Loading branch information
Larry Ruane
committed
Jul 15, 2022
1 parent
f25ab2e
commit 466b862
Showing
5 changed files
with
114 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.