update service not found error tooltip
fixing test failed issue
change back error type
change registry.ErrNotFound back to selector.ErrNotFound
change back error type
change registry.ErrNotFound back to selector.ErrNotFound
remove the single node tunnel test
Fix read yaml config from memory
package main
import (
	"fmt"
	"github.com/micro/go-micro/config"
	"github.com/micro/go-micro/config/source/memory"
)
var configData = []byte(`
---
a: 1234
`)
func main() {
	memorySource := memory.NewSource(
		memory.WithYAML(configData),
	)
	// Create new config
	conf := config.NewConfig()
	// Load file source
	conf.Load(memorySource)
	fmt.Println(string(conf.Bytes()))
}
			
			
This commit is contained in:
		| @@ -51,6 +51,9 @@ func (c *registrySelector) Select(service string, opts ...SelectOption) (Next, e | ||||
| 	// if that fails go directly to the registry | ||||
| 	services, err := c.rc.GetService(service) | ||||
| 	if err != nil { | ||||
| 		if err == registry.ErrNotFound { | ||||
| 			return nil, ErrNotFound | ||||
| 		} | ||||
| 		return nil, err | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user