mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-02 18:34:29 +08:00
fix: fix the ApiTest error
This commit is contained in:
parent
31d1033a9c
commit
e4844c149f
2
pkg/common/db/cache/meta_cache.go
vendored
2
pkg/common/db/cache/meta_cache.go
vendored
@ -206,7 +206,7 @@ func batchGetCache2[T any, K comparable](
|
||||
fns func(ctx context.Context, key K) (T, error),
|
||||
) ([]T, error) {
|
||||
if len(keys) == 0 {
|
||||
return nil, errs.ErrArgs.Wrap("groupID is empty")
|
||||
return nil, nil
|
||||
}
|
||||
res := make([]T, 0, len(keys))
|
||||
for _, key := range keys {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user