Skip to content

Commit

Permalink
Merge pull request #19 from vbauerster/drop-rwmutex
Browse files Browse the repository at this point in the history
Prefer Mutex to RWmutex
  • Loading branch information
schollz authored Sep 4, 2018
2 parents f22c909 + 7b98c50 commit 7a5b348
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions progressbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type ProgressBar struct {
state state
config config

lock sync.RWMutex
lock sync.Mutex
}

type state struct {
Expand Down Expand Up @@ -130,7 +130,6 @@ func NewOptions(max int, options ...Option) *ProgressBar {
width: 40,
max: max,
},
lock: sync.RWMutex{},
}

for _, o := range options {
Expand Down

0 comments on commit 7a5b348

Please sign in to comment.