Skip to content

Commit

Permalink
Merge pull request #1832 from allencloud/fix-nits-in-someplace
Browse files Browse the repository at this point in the history
fix nits in func comments
  • Loading branch information
LK4D4 authored Dec 22, 2016
2 parents f245c9b + 022075d commit 74b49ee
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ca/certificates.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const (
MinNodeCertExpiration = 1 * time.Hour
)

// A recoverableErr is an non-fatal error encountered signing a certificate,
// A recoverableErr is a non-fatal error encountered signing a certificate,
// which means that the certificate issuance may be retried at a later time.
type recoverableErr struct {
err error
Expand Down
2 changes: 1 addition & 1 deletion log/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func GetLogger(ctx context.Context) *logrus.Entry {
}

// WithModule adds the module to the context, appending it with a slash if a
// module already exists. A module is just an roughly correlated defined by the
// module already exists. A module is just a roughly correlated defined by the
// call tree for a given context.
//
// As an example, we might have a "node" module already part of a context. If
Expand Down
2 changes: 1 addition & 1 deletion manager/allocator/networkallocator/portallocator.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func newPortSpace(protocol api.PortConfig_Protocol) (*portSpace, error) {
}, nil
}

// getPortConfigkey returns a map key for doing set operations with
// getPortConfigKey returns a map key for doing set operations with
// ports. The key consists of name, protocol and target port which
// uniquely identifies a port within a single Endpoint.
func getPortConfigKey(p *api.PortConfig) api.PortConfig {
Expand Down
2 changes: 1 addition & 1 deletion manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const (
defaultTaskHistoryRetentionLimit = 5
)

// RemoteAddrs provides an listening address and an optional advertise address
// RemoteAddrs provides a listening address and an optional advertise address
// for serving the remote API.
type RemoteAddrs struct {
// Address to bind
Expand Down
2 changes: 1 addition & 1 deletion manager/orchestrator/replicated/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (r *Orchestrator) reconcile(ctx context.Context, service *api.Service) {
func (r *Orchestrator) addTasks(ctx context.Context, batch *store.Batch, service *api.Service, runningSlots map[uint64]orchestrator.Slot, deadSlots map[uint64]orchestrator.Slot, count int) {
slot := uint64(0)
for i := 0; i < count; i++ {
// Find an slot number that is missing a running task
// Find a slot number that is missing a running task
for {
slot++
if _, ok := runningSlots[slot]; !ok {
Expand Down

0 comments on commit 74b49ee

Please sign in to comment.