Skip to content

Commit

Permalink
spelling (dapr#110)
Browse files Browse the repository at this point in the history
* v1.0.0-rc-1

* spelling

* updated cache
  • Loading branch information
mchmarny authored Nov 25, 2020
1 parent f0813aa commit 7e8d5e5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release-on-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ jobs:
uses: actions/checkout@v2

- name: Cache
uses: actions/cache@preview
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
${{ runner.os }}-go-
- name: Tidy
run: |
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/test-on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@ jobs:
uses: actions/checkout@v2

- name: Cache
uses: actions/cache@preview
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-build-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
${{ runner.os }}-go-
- name: Tidy
run: |
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ RELEASE_VERSION =v1.0.0-rc-1
GDOC_PORT =8888
PROTO_ROOT =https://raw.githubusercontent.com/dapr/dapr/master/dapr/proto/

.PHONY: mod test cover service client lint protps tag docs clean help
.PHONY: mod test spellcheck cover service client lint protps tag docs clean help
all: test

tidy: ## Updates the go modules
Expand All @@ -16,6 +16,10 @@ test: mod ## Tests the entire project
-covermode=atomic \
./...

spellcheck: ## Checks spelling across the entire project
@command -v misspell > /dev/null 2>&1 || (cd tools && go get github.com/client9/misspell/cmd/misspell)
@misspell -locale="US" -error -source="text" **/*

cover: mod ## Displays test coverage in the client and service packages
go test -coverprofile=cover-client.out ./client && go tool cover -html=cover-client.out
go test -coverprofile=cover-grpc.out ./service/grpc && go tool cover -html=cover-grpc.out
Expand Down
4 changes: 2 additions & 2 deletions client/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func (c *GRPCClient) SaveState(ctx context.Context, store, key string, data []by
return c.SaveBulkState(ctx, store, item)
}

// SaveStateItems saves the multiple state item to store.
// SaveBulkState saves the multiple state item to store.
func (c *GRPCClient) SaveBulkState(ctx context.Context, store string, items ...*SetStateItem) error {
if store == "" {
return errors.New("nil store")
Expand All @@ -214,7 +214,7 @@ func (c *GRPCClient) SaveBulkState(ctx context.Context, store string, items ...*

}

// GetBulkItems retreaves state for multiple keys from specific store.
// GetBulkState retreaves state for multiple keys from specific store.
func (c *GRPCClient) GetBulkState(ctx context.Context, store string, keys []string, parallelism int32) ([]*StateItem, error) {
if store == "" {
return nil, errors.New("nil store")
Expand Down
1 change: 0 additions & 1 deletion dapr/proto/runtime/v1/appcallback_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e8d5e5

Please sign in to comment.