mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Remove the unnecessary mutex from gcal
This commit is contained in:
parent
ac87145749
commit
d77415783a
@ -29,9 +29,6 @@ func (widget *Widget) display() {
|
||||
return
|
||||
}
|
||||
|
||||
widget.mutex.Lock()
|
||||
defer widget.mutex.Unlock()
|
||||
|
||||
widget.View.SetTitle(widget.ContextualTitle(widget.settings.common.Title))
|
||||
widget.View.SetText(widget.contentFrom(widget.calEvents))
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
package gcal
|
||||
|
||||
import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/rivo/tview"
|
||||
@ -14,7 +13,6 @@ type Widget struct {
|
||||
app *tview.Application
|
||||
calEvents []*CalEvent
|
||||
ch chan struct{}
|
||||
mutex sync.Mutex
|
||||
settings *Settings
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user