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:
yang qf
2017-06-17 20:58:10 -07:00
committed by Soam Vasani
parent d9b98830cf
commit c1dd8a9f35
2 changed files with 43 additions and 12 deletions
+1 -4
View File
@@ -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) {