Skip to content
Permalink
Browse files Browse the repository at this point in the history
Read lock
  • Loading branch information
schollz committed Sep 4, 2017
1 parent f2964f2 commit e01d2ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ai2/ai.go
Expand Up @@ -93,6 +93,8 @@ func (ai *AI) decode(s string) []int {
}

func (ai *AI) Learn(mus *music.Music) (err error) {
mus.RLock()
defer mus.RUnlock()
fmt.Printf("%+v\n", ai)
logger := log.WithFields(log.Fields{
"function": "AI.Analyze",
Expand Down

0 comments on commit e01d2ac

Please sign in to comment.