func (s *Server) updateCurrentViewLocked(newView *view.View) { if !newView.MoreUpdatedThan(s.currentView) { // comment these log messages; they are just for debugging if newView.LessUpdatedThan(s.currentView) { log.Println("WARNING: Tried to Update current view with a less updated view") } else { log.Println("WARNING: Tried to Update current view with the same view") } return } s.currentView = newView log.Printf("CurrentView updated to: %v, ref: %v\n", s.currentView, s.currentView.ViewRef) }