lig/ignore, lib/logger: Fix race and potential dead-locks when logging (#4821)

This commit is contained in:
Simon Frei authored and Jakob Borg committed 2018-03-17 16:49:12 +01:00
1 parent 7872bfa173
commit 5520022766
2 files changed
+14 -10

No files matched your search

+4
View File
@@ -239,6 +239,10 @@ func (m *Matcher) Patterns() []string {
return patterns
}
func (m *Matcher) String() string {
return fmt.Sprintf("Matcher/%v@%p", m.Patterns(), m)
}
func (m *Matcher) Hash() string {
m.mut.Lock()
defer m.mut.Unlock()