From 6cf13c5e7662c75716ea3f711c34838e73f333f9 Mon Sep 17 00:00:00 2001 From: meows Date: Tue, 17 Mar 2020 15:59:26 -0500 Subject: [PATCH] rpc: dont log an error if user configures --rpcapi=rpc... Signed-off-by: meows --- rpc/endpoints.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc/endpoints.go b/rpc/endpoints.go index ed295adfc0..540c5b7713 100644 --- a/rpc/endpoints.go +++ b/rpc/endpoints.go @@ -23,7 +23,7 @@ import ( ) // checkModuleAvailability check that all names given in modules are actually -// available API services. +// available API services. It assumes that the special snowflake "rpc" module is always available. func checkModuleAvailability(modules []string, apis []API) (bad, available []string) { availableSet := make(map[string]struct{}) for _, api := range apis { @@ -33,7 +33,7 @@ func checkModuleAvailability(modules []string, apis []API) (bad, available []str } } for _, name := range modules { - if _, ok := availableSet[name]; !ok { + if _, ok := availableSet[name]; !ok && name != MetadataApi { bad = append(bad, name) } }