rpc: make comment more informative and neutral

Signed-off-by: meows <b5c6@protonmail.com>
This commit is contained in:
meows 2020-03-20 06:59:04 -05:00
parent 6cf13c5e76
commit bb73be873f
No known key found for this signature in database
GPG key ID: 5786AEA5C8D5A520

View file

@ -22,8 +22,9 @@ import (
"github.com/ethereum/go-ethereum/log"
)
// checkModuleAvailability check that all names given in modules are actually
// available API services. It assumes that the special snowflake "rpc" module is always available.
// checkModuleAvailability checks that all names given in modules are actually
// available API services. It assumes that the MetadataApi module ("rpc") is always available;
// the registration of this "rpc" module happens in NewServer() and is thus common to all endpoints.
func checkModuleAvailability(modules []string, apis []API) (bad, available []string) {
availableSet := make(map[string]struct{})
for _, api := range apis {