remove mock data from memory registry

memory registry can be used as fast inprocess registry,
so mock data needs to be in tests only

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2019-06-12 17:20:06 +03:00
parent 2b18b11ab1
commit ab692ff590
10 changed files with 165 additions and 8 deletions

View File

@@ -22,6 +22,7 @@ var (
timeout = time.Millisecond * 10
)
/*
// Setup sets mock data
func (m *Registry) Setup() {
m.Lock()
@@ -30,6 +31,7 @@ func (m *Registry) Setup() {
// add some memory data
m.Services = Data
}
*/
func (m *Registry) watch(r *registry.Result) {
var watchers []*Watcher