Skip to content

Commit

Permalink
Fixed typos in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
diptanu committed Jul 13, 2016
1 parent 42ba68a commit 04b24cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions nomad/state/state_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ func (s *StateStore) JobSummaryByID(jobID string) (*structs.JobSummary, error) {
return nil, nil
}

// JobSummaries walks the entire job summary table and retuns all the job
// JobSummaries walks the entire job summary table and returns all the job
// summary objects
func (s *StateStore) JobSummaries() (memdb.ResultIterator, error) {
txn := s.db.Txn(false)
Expand Down Expand Up @@ -776,7 +776,7 @@ func (s *StateStore) Evals() (memdb.ResultIterator, error) {
return iter, nil
}

// UStarting pdateAllocFromClient is used to update an allocation based on input
// UpdateAllocsFromClient is used to update an allocation based on input

// from a client. While the schedulers are the authority on the allocation for
// most things, some updates are authoritative from the client. Specifically,
Expand Down Expand Up @@ -1280,7 +1280,7 @@ func (s *StateStore) updateSummaryWithAlloc(newAlloc *structs.Allocation,
s.logger.Printf("[WARN]: new allocation inserted into state store with id: %v and state: %v", newAlloc.ClientStatus)
}
} else if existingAlloc.ClientStatus != newAlloc.ClientStatus {
// Incrementing the clint of the bin of the current state
// Incrementing the client of the bin of the current state
switch newAlloc.ClientStatus {
case structs.AllocClientStatusRunning:
tgSummary.Running += 1
Expand Down
4 changes: 0 additions & 4 deletions nomad/structs/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,6 @@ type PeriodicForceRequest struct {
WriteRequest
}

type ServerMembersRequest struct {
QueryOptions
}

// GenericRequest is used to request where no
// specific information is needed.
type GenericRequest struct {
Expand Down

0 comments on commit 04b24cf

Please sign in to comment.