diff --git a/events/event_discovery.go b/events/event_discovery.go index 91831ea..ab0a4af 100644 --- a/events/event_discovery.go +++ b/events/event_discovery.go @@ -1,7 +1,5 @@ package events -const () - type DiscoveryStartEvent struct { Message string Zone int64 @@ -11,8 +9,8 @@ func (i DiscoveryStartEvent) GetUrl() string { return DISCOVERY_START } -func NewDiscoveryStartEvent(message string, cidr int64) *DiscoveryStartEvent { - return &DiscoveryStartEvent{Message: message, Zone: cidr} +func NewDiscoveryStartEvent(message string, zone int64) *DiscoveryStartEvent { + return &DiscoveryStartEvent{Message: message, Zone: zone} } type DiscoveryEndEvent struct { @@ -20,7 +18,7 @@ type DiscoveryEndEvent struct { } func (i DiscoveryEndEvent) GetUrl() string { - return DISCOVERY_START + return DISCOVERY_END } func NewDiscoveryEndEvent(message string) *DiscoveryEndEvent {