monitor writes to db

Former-commit-id: 5aa70ad9d835c607abb1c19dc620f6c45d31a866
This commit is contained in:
bel
2019-06-22 14:40:57 -06:00
parent 5e87f1659d
commit 093d468f87
8 changed files with 58 additions and 17 deletions

View File

@@ -12,12 +12,13 @@ type Monitor struct {
config.Stoppable
}
func New() *Monitor {
func New() (*Monitor, error) {
q, err := newQueue()
return &Monitor{
queue: newQueue(),
queue: q,
Incoming: make(chan *Item),
Outgoing: make(chan *Item),
}
}, err
}
func (m *Monitor) Run() error {