优化 RedisCmd MarshalBinary

This commit is contained in:
zhangdeman committed 2025-04-20 18:13:56 +08:00
1 parent 55e6ac5d83
commit 6df87081a4
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@ func (rc RedisCmd) MarshalJSON() ([]byte, error) {
}
func (rc RedisCmd) MarshalBinary() ([]byte, error) {
return rc.MarshalJSON()
return []byte(rc.String()), nil
}
const (
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.