Skip to content

Commit

Permalink
all: fix some typos
Browse files Browse the repository at this point in the history
Signed-off-by: cui fliter <[email protected]>
Signed-off-by: Hank Donnay <[email protected]>
  • Loading branch information
cuishuang authored and hdonnay committed Nov 27, 2023
1 parent 9929134 commit daa78ec
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Documentation/concepts/api_internal.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This is used by the notifier to determine the added and removed vulnerabilities
## Update Operation

The `update_operation` endpoint exposes the api for viewing updaters' activity.
This is used by the notifier to determine if new updates have occured and triggers an update diff to see what has changed.
This is used by the notifier to determine if new updates have occurred and triggers an update diff to see what has changed.

## AffectedManifest

Expand Down
2 changes: 1 addition & 1 deletion Documentation/concepts/notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

ClairV4 implements a notification system.

The notifier service will keep track of new security database updates and inform an interested client if new or removed vulnerabilites affect an indexed manifest.
The notifier service will keep track of new security database updates and inform an interested client if new or removed vulnerabilities affect an indexed manifest.

The interested client can subscribe to notifications via several mechanisms:
* Webhook delivery
Expand Down
2 changes: 1 addition & 1 deletion Documentation/howto/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This environment can be used to test and develop Clair's Quay integration.

### Make

Make is used to stand up the the local dev environment.
Make is used to stand up the local dev environment.
Make is readily available in just about every package manager you can think of.
It's very likely your workstation already has make on it.

Expand Down
6 changes: 3 additions & 3 deletions clair-error/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (e ErrReceipt) Unwrap() error {
return e.E
}

// ErrCreated indicates an error occured when retrieving created notification ids.
// ErrCreated indicates an error occurred when retrieving created notification ids.
type ErrCreated struct {
E error
}
Expand All @@ -82,7 +82,7 @@ func (e ErrCreated) Unwrap() error {
return e.E
}

// ErrFailed indicates an error occured when retrieving created notification ids.
// ErrFailed indicates an error occurred when retrieving created notification ids.
type ErrFailed struct {
E error
}
Expand All @@ -95,7 +95,7 @@ func (e ErrFailed) Unwrap() error {
return e.E
}

// ErrPutNotifications indicates an issues occured when persisting a slice of
// ErrPutNotifications indicates an issues occurred when persisting a slice of
// computed notifications.
// The wrapped error will contain further details.
type ErrPutNotifications struct {
Expand Down
2 changes: 1 addition & 1 deletion introspection/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func New(ctx context.Context, conf config.Config, health func() bool) (*Server,
return i, nil
}

// withDiagnotics enables healthz and pprof endpoints
// WithDiagnostics enables healthz and pprof endpoints.
func (i *Server) withDiagnostics(_ context.Context) error {
health := i.health
i.HandleFunc(HealthEndpoint, func(w http.ResponseWriter, r *http.Request) {
Expand Down
2 changes: 1 addition & 1 deletion notifier/mockstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (m *MockStore) Notifications(ctx context.Context, id uuid.UUID, page *Page)
// them with the provided notification id
//
// PutNotifications must update the latest update operation for the provided
// updater in such a way that UpdateOperation returns the the provided update
// updater in such a way that UpdateOperation returns the provided update
// operation id when queried with the updater name
//
// PutNotifications must create a Receipt with status created status on
Expand Down
2 changes: 1 addition & 1 deletion notifier/postgres/pagination_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func TestPagination(t *testing.T) {
total := []notifier.Notification{}
returned, outPage, err := store.Notifications(ctx, noteID, &inPage)
if err != nil {
t.Fatalf("failed to retreive initial page: %v", err)
t.Fatalf("failed to retrieve initial page: %v", err)
}
total = append(total, returned...)

Expand Down
2 changes: 1 addition & 1 deletion notifier/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type Notificationer interface {
// them with the provided notification id
//
// PutNotifications must update the latest update operation for the provided
// updater in such a way that UpdateOperation returns the the provided update
// updater in such a way that UpdateOperation returns the provided update
// operation id when queried with the updater name
//
// PutNotifications must create a Receipt with status created status on
Expand Down

0 comments on commit daa78ec

Please sign in to comment.