agent/bill/monitor.go
func (m *Monitor) Run() error {
	m.logger.Info("Billing monitor started")

	for {
		if err := m.processRound(); err != nil {
			return err
		}

		time.Sleep(time.Duration(m.interval) * time.Millisecond)
	}
}
func (m *Monitor) Run() error {
	m.logger.Info("Billing monitor started")

	for {
		if err := m.processRound(); err != nil {
			return err
		}

		time.Sleep(time.Duration(m.interval) * time.Millisecond)
	}
}
func ( m * Monitor ) Run ( ) error { m . logger . Info ( " " ) for { if err := m . processRound ( ) ; err != nil { return err } time . Sleep ( time . Duration ( m . interval ) * time . Millisecond ) } }
// Run begins monitoring of channels.
// In case of error - doesn't restarts automatically.
Run begins monitoring of channels . In case of error - doesn t restarts automatically .