-
Notifications
You must be signed in to change notification settings - Fork 202
feat: Create and alias index #813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Hi @SoulPancake, I just reviewed it again and left some comments. Could you also write some tests to demonstrate how a user can use this feature? |
om/hash.go
Outdated
var currentIndex string | ||
infoCmd := r.client.B().FtInfo().Index(alias).Build() | ||
infoResp, err := r.client.Do(ctx, infoCmd).ToMap() | ||
aliasExists := err == nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What will be the error returned when the index does not exist? Will it be a redis Nil? I think we should return early here if the err is caused by other reasons, such as network failures.
Co-authored-by: Rueian <[email protected]>
Hi @rueian Apologies for the huge delay |
No description provided.