monitor writes to db
Former-commit-id: 5aa70ad9d835c607abb1c19dc620f6c45d31a866
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user