Skip to content

Commit

Permalink
Fix a small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
adibrastegarnia committed Sep 2, 2020
1 parent a3e1b1e commit 448c047
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/southbound/synchronizer/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ func (s *Session) getCurrentTerm() (int, error) {
}

term := device.Attributes[mastershipTermKey]
if term == "" {
return 0, nil
}
return strconv.Atoi(term)
}

Expand Down

0 comments on commit 448c047

Please sign in to comment.