aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordockercui <dockercui@aliyun.com>2024-04-24 10:47:28 +0800
committerdockercui <dockercui@aliyun.com>2024-04-24 10:47:28 +0800
commite256cdec58e50e25a3bca3223d425499d9e0d702 (patch)
tree72139c0be41db1cf174c083e4adfc6170ffa26f5
parentc82881c0c72149902370a06ccdd0b784c192169e (diff)
downloadgit-bug-e256cdec58e50e25a3bca3223d425499d9e0d702.tar.gz
Fix some comments
Signed-off-by: dockercui <dockercui@aliyun.com>
-rw-r--r--bridge/core/export.go2
-rw-r--r--bridge/github/client.go2
-rw-r--r--repository/config_mem.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/bridge/core/export.go b/bridge/core/export.go
index 5bf16801..9a248739 100644
--- a/bridge/core/export.go
+++ b/bridge/core/export.go
@@ -17,7 +17,7 @@ const (
ExportEventComment
// Comment has been edited on the remote tracker
ExportEventCommentEdition
- // Bug's status has been changed on on the remote tracker
+ // Bug's status has been changed on the remote tracker
ExportEventStatusChange
// Bug's title has been changed on the remote tracker
ExportEventTitleEdition
diff --git a/bridge/github/client.go b/bridge/github/client.go
index 974c3067..e33b28d4 100644
--- a/bridge/github/client.go
+++ b/bridge/github/client.go
@@ -60,7 +60,7 @@ func (c *rateLimitHandlerClient) queryImport(ctx context.Context, query interfac
return c.callAPIAndRetry(ctx, queryFun, callback)
}
-// queryImport calls the github api with a graphql query, and sends a core.ExportResult for each rate limiting event
+// queryExport calls the github api with a graphql query, and sends a core.ExportResult for each rate limiting event
func (c *rateLimitHandlerClient) queryExport(ctx context.Context, query interface{}, vars map[string]interface{}, out chan<- core.ExportResult) error {
// prepare a closure for the query
queryFun := func(ctx context.Context) error {
diff --git a/repository/config_mem.go b/repository/config_mem.go
index 55b12fd7..d9126f39 100644
--- a/repository/config_mem.go
+++ b/repository/config_mem.go
@@ -79,7 +79,7 @@ func (mc *MemConfig) ReadTimestamp(key string) (time.Time, error) {
return time.Unix(int64(timestamp), 0), nil
}
-// RmConfigs remove all key/value pair matching the key prefix
+// RemoveAll remove all key/value pair matching the key prefix
func (mc *MemConfig) RemoveAll(keyPrefix string) error {
keyPrefix = normalizeKey(keyPrefix)
found := false