mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-26 22:16:20 +08:00
add cache internal to the func
This commit is contained in:
parent
ce6ec25253
commit
c0a88e7c43
1 changed files with 1 additions and 3 deletions
|
|
@ -458,9 +458,7 @@ func deleteNetwork(w http.ResponseWriter, r *http.Request) {
|
|||
go logic.DeleteNetworkRoles(network)
|
||||
go logic.DeleteDefaultNetworkPolicies(models.NetworkID(network))
|
||||
//delete network from allocated ip map
|
||||
if servercfg.CacheEnabled() {
|
||||
go logic.RemoveNetworkFromAllocatedIpMap(network)
|
||||
}
|
||||
go logic.RemoveNetworkFromAllocatedIpMap(network)
|
||||
|
||||
logger.Log(1, r.Header.Get("user"), "deleted network", network)
|
||||
w.WriteHeader(http.StatusOK)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue