swarm: add comment for parseFlagEnsAPI and fix a mistake in comment in code
This commit is contained in:
		@@ -464,7 +464,6 @@ func registerBzzService(ctx *cli.Context, stack *node.Node) {
 | 
				
			|||||||
		case 1:
 | 
							case 1:
 | 
				
			||||||
			// Check if only one --ens-api is specified in order to use --ens-addr value
 | 
								// Check if only one --ens-api is specified in order to use --ens-addr value
 | 
				
			||||||
			// to preserve the backward compatibility with single --ens-api flag.
 | 
								// to preserve the backward compatibility with single --ens-api flag.
 | 
				
			||||||
			// Multiple
 | 
					 | 
				
			||||||
			c := parseFlagEnsAPI(ensAPIs[0])
 | 
								c := parseFlagEnsAPI(ensAPIs[0])
 | 
				
			||||||
			if ensAddr != "" {
 | 
								if ensAddr != "" {
 | 
				
			||||||
				// If contract address is specified in both cases, check for conflict.
 | 
									// If contract address is specified in both cases, check for conflict.
 | 
				
			||||||
@@ -498,6 +497,9 @@ func registerBzzService(ctx *cli.Context, stack *node.Node) {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// parseFlagEnsAPI parses EnsAPIFlag according to format
 | 
				
			||||||
 | 
					// [tld:][contract-addr@]url and returns ENSClientConfig structure
 | 
				
			||||||
 | 
					// with endpoint, contract address and TLD.
 | 
				
			||||||
func parseFlagEnsAPI(s string) swarm.ENSClientConfig {
 | 
					func parseFlagEnsAPI(s string) swarm.ENSClientConfig {
 | 
				
			||||||
	isAllLetterString := func(s string) bool {
 | 
						isAllLetterString := func(s string) bool {
 | 
				
			||||||
		for _, r := range s {
 | 
							for _, r := range s {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user