Lint fix (#2074)
Signed-off-by: Harsh Thakur <harshthakur9030@gmail.com> Co-authored-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
co-authored by
Sanket Sudake
parent
db2fb81654
commit
18935dcfdd
@@ -574,13 +574,16 @@ func (fh functionHandler) getServiceEntryFromCache() (serviceUrl *url.URL, err e
|
|||||||
}
|
}
|
||||||
|
|
||||||
// addServiceEntryToCache add service url entry to cache
|
// addServiceEntryToCache add service url entry to cache
|
||||||
func (fn functionHandler) addServiceEntryToCache(serviceUrl *url.URL) {
|
func (fh functionHandler) addServiceEntryToCache(serviceURL *url.URL) {
|
||||||
fn.fmap.assign(&fn.function.ObjectMeta, serviceUrl)
|
fh.fmap.assign(&fh.function.ObjectMeta, serviceURL)
|
||||||
}
|
}
|
||||||
|
|
||||||
// removeServiceEntryFromCache removes service url entry from cache
|
// removeServiceEntryFromCache removes service url entry from cache
|
||||||
func (fn functionHandler) removeServiceEntryFromCache() {
|
func (fh functionHandler) removeServiceEntryFromCache() {
|
||||||
fn.fmap.remove(&fn.function.ObjectMeta)
|
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) {
|
func (fh functionHandler) getServiceEntryFromExecutor() (serviceUrl *url.URL, err error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user