Skip to content

Commit

Permalink
fix: Rename persistant to persistent (spelling)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Thompson <[email protected]>
  • Loading branch information
jefft0 committed Apr 28, 2023
1 parent 19d2147 commit 6cd8a01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions blackbox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ func ExampleNewPersistentServiceClient_basic() {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()

// create a temporary path to host data of our persistant service
path, err := os.MkdirTemp("", "weshnet-test-persistant")
// create a temporary path to host data of our persistent service
path, err := os.MkdirTemp("", "weshnet-test-persistent")
if err != nil {
panic(err)
}
Expand Down
6 changes: 3 additions & 3 deletions service_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func NewPersistentServiceClient(path string) (ServiceClient, error) {
return nil, err
}

return &persistantServiceClient{
return &persistentServiceClient{
ServiceClient: cl,
ds: ds,
}, nil
Expand All @@ -117,12 +117,12 @@ type serviceClient struct {
server *grpc.Server
}

type persistantServiceClient struct {
type persistentServiceClient struct {
ServiceClient
ds datastore.Batching
}

func (p *persistantServiceClient) Close() error {
func (p *persistentServiceClient) Close() error {
err := p.ServiceClient.Close()

if dserr := p.ds.Close(); err == nil && dserr != nil {
Expand Down

0 comments on commit 6cd8a01

Please sign in to comment.