From 63fe155dd6e2bc89a136af23072c3048aa632266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Huan=20=28=E6=9D=8E=E5=8D=93=E6=A1=93=29?= Date: Fri, 30 Jul 2021 17:42:10 +0800 Subject: [PATCH] fix `cache.NewSnapshot` parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ```sh # github.com/envoyproxy/go-control-plane/internal/example internal/example/resource.go:165:26: not enough arguments in call to cache.NewSnapshot have (string, []types.Resource, []types.Resource, []types.Resource, []types.Resource, []types.Resource, []types.Resource) want (string, []types.Resource, []types.Resource, []types.Resource, []types.Resource, []types.Resource, []types.Resource, []types.Resource) make: *** [Makefile:79: bin/example] Error 2 ERROR: Service 'go-control-plane' failed to build: The command '/bin/sh -c cd go-control-plane && make bin/example' returned a non-zero code: 2 ``` Signed-off-by: Huan LI (李卓桓) --- examples/dynamic-config-cp/resource.go | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/dynamic-config-cp/resource.go b/examples/dynamic-config-cp/resource.go index 2cc38f35bc200..de423524038df 100644 --- a/examples/dynamic-config-cp/resource.go +++ b/examples/dynamic-config-cp/resource.go @@ -170,5 +170,6 @@ func GenerateSnapshot() cache.Snapshot { []types.Resource{makeHTTPListener(ListenerName, RouteName)}, []types.Resource{}, // runtimes []types.Resource{}, // secrets + []types.Resource{}, ) }