Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: okJiang <819421878@qq.com>
  • Loading branch information
okJiang committed Jun 24, 2024
1 parent 54edee8 commit c01b053
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/mcs/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (r *ServiceRegistry) InstallAllRESTHandler(srv bs.Server, h map[string]http
serviceName := createServiceName(prefix, name)
if l, ok := r.services[serviceName]; ok {
if err := l.RegisterRESTHandler(h); err != nil {
log.Error("register REST handler failed", zap.String("prefix", prefix), zap.String("service-name", name), zap.Error(err))
log.Error("register restful API service failed", zap.String("prefix", prefix), zap.String("service-name", name), zap.Error(err))
} else {
log.Info("restful API service already registered", zap.String("prefix", prefix), zap.String("service-name", name))
}
Expand All @@ -92,7 +92,7 @@ func (r *ServiceRegistry) InstallAllRESTHandler(srv bs.Server, h map[string]http
l := builder(srv)
r.services[serviceName] = l
if err := l.RegisterRESTHandler(h); err != nil {
log.Error("register REST handler failed", zap.String("prefix", prefix), zap.String("service-name", name), zap.Error(err))
log.Error("register restful API service failed", zap.String("prefix", prefix), zap.String("service-name", name), zap.Error(err))
} else {
log.Info("restful API service registered successfully", zap.String("prefix", prefix), zap.String("service-name", name))
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/endpoint/gc_safe_point.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (se *StorageEndpoint) LoadMinServiceGCSafePoint(now time.Time) (*ServiceSaf

if ssp.ExpiredAt < now.Unix() {
if err := se.Remove(key); err != nil {
return nil, err
log.Error("failed to remove expired service safepoint", errs.ZapError(err))
}
continue
}
Expand Down

0 comments on commit c01b053

Please sign in to comment.