ing
This commit is contained in:
parent
303b89199d
commit
cb620f2a4c
|
@ -16,7 +16,7 @@ func (c *DiscoveryCrawler) String() string {
|
|||
return "Discovery"
|
||||
}
|
||||
|
||||
func (c *DiscoveryCrawler) Auth(auth map[string]string) error {
|
||||
func (c *DiscoveryCrawler) Auth(auth map[string]interface{}) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -5,6 +5,8 @@ import (
|
|||
"reflect"
|
||||
"sync"
|
||||
|
||||
"git.loafle.net/commons/logging-go"
|
||||
|
||||
cda "git.loafle.net/commons/di-go/annotation"
|
||||
cdr "git.loafle.net/commons/di-go/registry"
|
||||
ocdm "git.loafle.net/overflow/commons-go/discovery/model"
|
||||
|
@ -126,8 +128,10 @@ func (s *DiscoveryService) handleDiscovery(requesterID string, discoveryFunc fun
|
|||
}
|
||||
switch data.Type {
|
||||
case discoverer.DiscoveryDataTypeStart:
|
||||
logging.Logger().Debugf("DiscoveryService.DiscoveryStart")
|
||||
s.ProbeService.Send("DiscoveryService.DiscoveryStart", requesterID, data.Time)
|
||||
case discoverer.DiscoveryDataTypeStop:
|
||||
logging.Logger().Debugf("DiscoveryService.DiscoveryStop")
|
||||
s.ProbeService.Send("DiscoveryService.DiscoveryStop", requesterID, data.Time)
|
||||
data.Release()
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue
Block a user