Skip to content

Commit e6fa581

Browse files
committed
If has instanceId, app id is instanceId
1 parent f694c4c commit e6fa581

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net.go

+3
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,9 @@ func (e *EurekaConnection) HeartBeatInstance(ins *Instance) error {
803803
}
804804

805805
func (i *Instance) Id() string {
806+
if i.InstanceId != "" {
807+
return i.InstanceId
808+
}
806809
if i.UniqueID != nil {
807810
return i.UniqueID(*i)
808811
}

0 commit comments

Comments
 (0)