mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Construct a network.Filter from the filters.Args only once per API request so we don't waste cycles re-validating an already validated filter. Since (*Daemon).NetworksPrune is implemented in terms of (Cluster).GetNetworks, that method now accepts a network.Filter instead of a filter.Args. Change the signature of (*Daemon).GetNetworks for consistency as both of the GetNetworks methods are used by network API route handlers. Signed-off-by: Cory Snider <csnider@mirantis.com>