Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com>

Co-authored-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Harsh Thakur
2021-06-18 13:41:23 +05:30
committed by GitHub
co-authored by Sanket Sudake
parent db2fb81654
commit 18935dcfdd
+7 -4
View File
@@ -574,13 +574,16 @@ func (fh functionHandler) getServiceEntryFromCache() (serviceUrl *url.URL, err e
}
// addServiceEntryToCache add service url entry to cache
func (fn functionHandler) addServiceEntryToCache(serviceUrl *url.URL) {
fn.fmap.assign(&fn.function.ObjectMeta, serviceUrl)
func (fh functionHandler) addServiceEntryToCache(serviceURL *url.URL) {
fh.fmap.assign(&fh.function.ObjectMeta, serviceURL)
}
// removeServiceEntryFromCache removes service url entry from cache
func (fn functionHandler) removeServiceEntryFromCache() {
fn.fmap.remove(&fn.function.ObjectMeta)
func (fh functionHandler) removeServiceEntryFromCache() {
err := fh.fmap.remove(&fh.function.ObjectMeta)
if err != nil {
fh.logger.Error("Error removing key:", zap.Error(err))
}
}
func (fh functionHandler) getServiceEntryFromExecutor() (serviceUrl *url.URL, err error) {