| @@ -34,7 +34,9 @@ func (m *gossipWatcher) Next() (*registry.Result, error) { | |||||||
| 			if len(m.wo.Service) > 0 && r.Service.Name != m.wo.Service { | 			if len(m.wo.Service) > 0 && r.Service.Name != m.wo.Service { | ||||||
| 				continue | 				continue | ||||||
| 			} | 			} | ||||||
| 			return r, nil | 			nr := ®istry.Result{} | ||||||
|  | 			*nr = *r | ||||||
|  | 			return nr, nil | ||||||
| 		case <-m.stop: | 		case <-m.stop: | ||||||
| 			return nil, registry.ErrWatcherStopped | 			return nil, registry.ErrWatcherStopped | ||||||
| 		} | 		} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user