spelling: detached
This commit is contained in:
parent
8901e6eec2
commit
1ae6489afc
@ -83,7 +83,7 @@ func (this *InstanceKey) IsValid() bool {
|
|||||||
return len(this.Hostname) > 0 && this.Port > 0
|
return len(this.Hostname) > 0 && this.Port > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// DetachedKey returns an instance key whose hostname is detahced: invalid, but recoverable
|
// DetachedKey returns an instance key whose hostname is detached: invalid, but recoverable
|
||||||
func (this *InstanceKey) DetachedKey() *InstanceKey {
|
func (this *InstanceKey) DetachedKey() *InstanceKey {
|
||||||
if this.IsDetached() {
|
if this.IsDetached() {
|
||||||
return this
|
return this
|
||||||
@ -91,7 +91,7 @@ func (this *InstanceKey) DetachedKey() *InstanceKey {
|
|||||||
return &InstanceKey{Hostname: fmt.Sprintf("%s%s", detachHint, this.Hostname), Port: this.Port}
|
return &InstanceKey{Hostname: fmt.Sprintf("%s%s", detachHint, this.Hostname), Port: this.Port}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReattachedKey returns an instance key whose hostname is detahced: invalid, but recoverable
|
// ReattachedKey returns an instance key whose hostname is detached: invalid, but recoverable
|
||||||
func (this *InstanceKey) ReattachedKey() *InstanceKey {
|
func (this *InstanceKey) ReattachedKey() *InstanceKey {
|
||||||
if !this.IsDetached() {
|
if !this.IsDetached() {
|
||||||
return this
|
return this
|
||||||
|
Loading…
Reference in New Issue
Block a user