Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Merge branch '1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
rade committed Mar 22, 2016
2 parents 63a9f87 + 5378680 commit b080224
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions nameserver/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ func (e1 *Entry) addLowercase() {
e1.lHostname = strings.ToLower(e1.Hostname)
}

func (e *Entry) tombstone() {
e.Version++
e.Tombstone = now()
func (e1 *Entry) tombstone() {
e1.Version++
e1.Tombstone = now()
}

func check(es SortableEntries) error {
Expand Down Expand Up @@ -220,9 +220,8 @@ func (es Entries) findEqual(e *Entry) (*Entry, bool) {
})
if i < len(es) && es[i].equal(*e) {
return &es[i], true
} else {
return nil, false
}
return nil, false
}

func (es Entries) lookup(hostname string) Entries {
Expand Down

0 comments on commit b080224

Please sign in to comment.