Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ロックなくても動くやろ #17

Merged
merged 1 commit into from Oct 20, 2018
Merged
Changes from all commits
Commits
File filter
Filter file types
Beta Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.

Always

Just for now

@@ -83,8 +83,8 @@ func (cs *CandlestickStore) GetAndCacheIfPossibleInter(d QueryExecutor, mt time.
// log.Println("called GetCandlestickData")

// res MUST be sorted by time
cs.m.Lock()
defer cs.m.Unlock()
// cs.m.Lock()
// defer cs.m.Unlock()

for _, val := range res {
if cs.cachedLatest.Before(val.Time) {
ProTip! Use n and p to navigate between commits in a pull request.