mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-12 22:07:47 +02:00
fix nil pointer
This commit is contained in:
@ -76,7 +76,7 @@ func addServices(old, neu []*registry.Service) []*registry.Service {
|
|||||||
var seen bool
|
var seen bool
|
||||||
for _, o := range old {
|
for _, o := range old {
|
||||||
if o.Version == s.Version {
|
if o.Version == s.Version {
|
||||||
var sp *registry.Service
|
sp := new(registry.Service)
|
||||||
// make copy
|
// make copy
|
||||||
*sp = *o
|
*sp = *o
|
||||||
// set nodes
|
// set nodes
|
||||||
|
Reference in New Issue
Block a user