File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -109,10 +109,7 @@ func (a *App) Stop() error {
109
109
// buildInstance create the service instance info
110
110
func (a * App ) buildInstance () (* registry.ServiceInstance , error ) {
111
111
// build the service instance
112
- i := & registry.ServiceInstance {
113
- ID : a .opts .id ,
114
- Name : a .opts .name ,
115
- }
112
+
116
113
endpoints := make ([]string , 0 , len (a .opts .endpoints )+ 1 )
117
114
for _ , ep := range a .opts .endpoints {
118
115
if ep != nil {
@@ -131,5 +128,9 @@ func (a *App) buildInstance() (*registry.ServiceInstance, error) {
131
128
//if a.opts.registrar == nil {
132
129
// a.opts.registrar = a.opts.defaultRegistrar()
133
130
//}
134
- return i , nil
131
+ return & registry.ServiceInstance {
132
+ ID : a .opts .id ,
133
+ Name : a .opts .name ,
134
+ Endpoints : endpoints ,
135
+ }, nil
135
136
}
You can’t perform that action at this time.
0 commit comments