aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Russell <ryanrussell@users.noreply.github.com>2022-09-15 04:04:57 -0500
committerGitHub <noreply@github.com>2022-09-15 02:04:57 -0700
commitd65bdeef085e9366001f50d3714e8c5fc84a53ca (patch)
tree367c8dcbb45175b5d8981d463baf4eb5be8957df
parent92658b05a8bee8628fd3be232a86a62d1640d738 (diff)
downloadseaweedfs-d65bdeef085e9366001f50d3714e8c5fc84a53ca.tar.xz
seaweedfs-d65bdeef085e9366001f50d3714e8c5fc84a53ca.zip
docs(meta_cache): readability fixes (#3691)
Signed-off-by: Ryan Russell <git@ryanrussell.org> Signed-off-by: Ryan Russell <git@ryanrussell.org>
-rw-r--r--weed/mount/meta_cache/cache_config.go2
-rw-r--r--weed/mount/meta_cache/meta_cache_subscribe.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/weed/mount/meta_cache/cache_config.go b/weed/mount/meta_cache/cache_config.go
index b806df76c..5063bd400 100644
--- a/weed/mount/meta_cache/cache_config.go
+++ b/weed/mount/meta_cache/cache_config.go
@@ -6,7 +6,7 @@ var (
_ = util.Configuration(&cacheConfig{})
)
-// implementing util.Configuraion
+// implementing util.Configuration
type cacheConfig struct {
dir string
}
diff --git a/weed/mount/meta_cache/meta_cache_subscribe.go b/weed/mount/meta_cache/meta_cache_subscribe.go
index 22f02c8c7..241777371 100644
--- a/weed/mount/meta_cache/meta_cache_subscribe.go
+++ b/weed/mount/meta_cache/meta_cache_subscribe.go
@@ -46,7 +46,7 @@ func SubscribeMetaEvents(mc *MetaCache, selfSignature int32, client filer_pb.Fil
mc.invalidateFunc(newKey, message.NewEntry)
}
} else if filer_pb.IsCreate(resp) {
- // no need to invaalidate
+ // no need to invalidate
} else if filer_pb.IsDelete(resp) {
oldKey := util.NewFullPath(resp.Directory, message.OldEntry.Name)
mc.invalidateFunc(oldKey, message.OldEntry)