mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
rpc: make comment more informative and neutral
Signed-off-by: meows <b5c6@protonmail.com>
This commit is contained in:
parent
6cf13c5e76
commit
bb73be873f
1 changed files with 3 additions and 2 deletions
|
|
@ -22,8 +22,9 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/log"
|
"github.com/ethereum/go-ethereum/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// checkModuleAvailability check that all names given in modules are actually
|
// checkModuleAvailability checks that all names given in modules are actually
|
||||||
// available API services. It assumes that the special snowflake "rpc" module is always available.
|
// 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) {
|
func checkModuleAvailability(modules []string, apis []API) (bad, available []string) {
|
||||||
availableSet := make(map[string]struct{})
|
availableSet := make(map[string]struct{})
|
||||||
for _, api := range apis {
|
for _, api := range apis {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue