Aggregate tap service request in interval (#229)
The poolmgr client now aggregates successive tapService() calls and sends them to the poolmgr service every 5 sec, instead of sending them immediately.
This commit is contained in:
@@ -84,10 +84,7 @@ func (fh *functionHandler) tapService(serviceUrl *url.URL) {
|
||||
if fh.poolmgr == nil {
|
||||
return
|
||||
}
|
||||
err := fh.poolmgr.TapService(serviceUrl)
|
||||
if err != nil {
|
||||
log.Printf("tap service error for %v: %v", serviceUrl.String(), err)
|
||||
}
|
||||
fh.poolmgr.TapService(serviceUrl)
|
||||
}
|
||||
|
||||
func (fh *functionHandler) handler(responseWriter http.ResponseWriter, request *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user