@@ -5,13 +5,10 @@ import (
55 "sort"
66 "strings"
77 "sync"
8- "time"
98
109 "bitbucket.org/mcplusa-ondemand/firehose-to-sumologic/caching"
1110 "bitbucket.org/mcplusa-ondemand/firehose-to-sumologic/eventQueue"
1211 fevents "bitbucket.org/mcplusa-ondemand/firehose-to-sumologic/events"
13- "bitbucket.org/mcplusa-ondemand/firehose-to-sumologic/sumoCFFirehose"
14- "github.com/Sirupsen/logrus"
1512 "github.com/cloudfoundry/sonde-go/events"
1613)
1714
@@ -20,16 +17,14 @@ type EventRouting struct {
2017 selectedEvents map [string ]bool
2118 selectedEventsCount map [string ]uint64
2219 mutex * sync.Mutex
23- sLAppender sumoCFFirehose.SumoLogicAppender //**
2420 queue * eventQueue.Queue
2521}
2622
27- func NewEventRouting (caching caching.Caching , sLAppender sumoCFFirehose. SumoLogicAppender , queue * eventQueue.Queue ) * EventRouting {
23+ func NewEventRouting (caching caching.Caching , queue * eventQueue.Queue ) * EventRouting {
2824 return & EventRouting {
2925 CachingClient : caching ,
3026 selectedEvents : make (map [string ]bool ),
3127 selectedEventsCount : make (map [string ]uint64 ),
32- sLAppender : sLAppender , //**
3328 queue : queue ,
3429 mutex : & sync.Mutex {},
3530 }
@@ -118,7 +113,7 @@ func GetListAuthorizedEventEvents() (authorizedEvents string) {
118113 return strings .Join (arrEvents , ", " )
119114}
120115
121- func (e * EventRouting ) GetTotalCountOfSelectedEvents () uint64 {
116+ /* func (e *EventRouting) GetTotalCountOfSelectedEvents() uint64 {
122117 var total = uint64(0)
123118 for _, count := range e.GetSelectedEventsCount() {
124119 total += count
@@ -148,9 +143,9 @@ func (e *EventRouting) LogEventTotals(logTotalsTime time.Duration) {
148143 e.queue.Push(event)
149144 }
150145 }()
151- }
146+ }*/
152147
153- func (e * EventRouting ) getEventTotals (totalElapsedTime float64 , elapsedTime float64 , lastCount uint64 ) (* fevents.Event , uint64 ) {
148+ /* func (e *EventRouting) getEventTotals(totalElapsedTime float64, elapsedTime float64, lastCount uint64) (*fevents.Event, uint64) {
154149 e.mutex.Lock()
155150 defer e.mutex.Unlock()
156151 totalCount := e.GetTotalCountOfSelectedEvents()
@@ -172,3 +167,4 @@ func (e *EventRouting) getEventTotals(totalElapsedTime float64, elapsedTime floa
172167 event.AnnotateWithMetaData(map[string]string{})
173168 return event, totalCount
174169}
170+ */
0 commit comments