Skip to content

Commit

Permalink
fix typo (#2569)
Browse files Browse the repository at this point in the history
Signed-off-by: wuqiaomin <[email protected]>
  • Loading branch information
吴乔民 authored Apr 28, 2021
1 parent 2d50402 commit edd0f04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/common/privdata/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ type CollectionStore interface {
// RetrieveCollectionPersistenceConfigs retrieves the collection's persistence related configurations
RetrieveCollectionPersistenceConfigs(CollectionCriteria) (CollectionPersistenceConfigs, error)

// RetrieveReadWritePermission retrieves the read-write persmission of the creator of the
// RetrieveReadWritePermission retrieves the read-write permission of the creator of the
// signedProposal for a given collection using collection access policy and flags such as
// memberOnlyRead & memberOnlyWrite
RetrieveReadWritePermission(CollectionCriteria, *peer.SignedProposal, ledger.QueryExecutor) (bool, bool, error)
Expand Down
4 changes: 2 additions & 2 deletions core/common/privdata/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (c *SimpleCollectionStore) RetrieveCollectionPersistenceConfigs(cc Collecti
return &SimpleCollectionPersistenceConfigs{staticCollectionConfig.BlockToLive}, nil
}

// RetrieveReadWritePermission retrieves the read-write persmission of the creator of the
// RetrieveReadWritePermission retrieves the read-write permission of the creator of the
// signedProposal for a given collection using collection access policy and flags such as
// memberOnlyRead & memberOnlyWrite
func (c *SimpleCollectionStore) RetrieveReadWritePermission(
Expand All @@ -210,7 +210,7 @@ func (c *SimpleCollectionStore) RetrieveReadWritePermission(
return true, true, nil
}

// all members have read-write persmission
// all members have read-write permission
if isAMember, err := isCreatorOfProposalAMember(signedProposal, collection); err != nil {
return false, false, err
} else if isAMember {
Expand Down

0 comments on commit edd0f04

Please sign in to comment.