From 6cd8a01bc2ffe888ba76e917d07a6edb95aa2b1e Mon Sep 17 00:00:00 2001 From: Jeff Thompson Date: Fri, 28 Apr 2023 16:33:36 +0200 Subject: [PATCH] fix: Rename persistant to persistent (spelling) Signed-off-by: Jeff Thompson --- blackbox_test.go | 4 ++-- service_client.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/blackbox_test.go b/blackbox_test.go index 4c92c3c1..74b91bc7 100644 --- a/blackbox_test.go +++ b/blackbox_test.go @@ -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) } diff --git a/service_client.go b/service_client.go index b74ca160..402bc719 100644 --- a/service_client.go +++ b/service_client.go @@ -102,7 +102,7 @@ func NewPersistentServiceClient(path string) (ServiceClient, error) { return nil, err } - return &persistantServiceClient{ + return &persistentServiceClient{ ServiceClient: cl, ds: ds, }, nil @@ -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 {