Skip to content
Prev Previous commit
Next Next commit
style: remove my custom comment
Signed-off-by: iamcodingcat <joyh951021@gmail.com>
  • Loading branch information
younghun-jo-levit-com authored and iamcodingcat committed May 13, 2025
commit 70bd018edcd8978ee3a6fda7a83c4a11e02518a3
2 changes: 1 addition & 1 deletion go/internal/feast/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func NewRegistry(registryConfig *RegistryConfig, repoPath string, project string
func (r *Registry) InitializeRegistry() error {
_, err := r.getRegistryProto()
if err != nil {
if _, ok := r.registryStore.(*FileRegistryStore); ok { // S3에는 굳이 연동할 필요 없어 보임. 오히려 이로 인해 정상적이던 s3 내의 레지스트리 파일이 초기화된 파일로 덮어쓰기 될 수도 있지 않음?
if _, ok := r.registryStore.(*FileRegistryStore); ok {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't apply if statement in case that registry store is S3RegistryStore. because this initialized empty registry store is likely to overwrite normal registry file in s3 storage. Of course, this case is when the err of r.getRegistryProto() method is the network error not abnormal file in s3 storage.

log.Error().Err(err).Msg("Registry Initialization Failed")
return err
}
Expand Down