From d35743ba9bef4eeda5a5f4f06a2eef9e90447711 Mon Sep 17 00:00:00 2001 From: icey-yu <1186114839@qq.com> Date: Wed, 9 Oct 2024 14:40:34 +0800 Subject: [PATCH] fix: val --- go.mod | 2 +- go.sum | 4 ++-- internal/user/user.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 62a0f2597..14cc65992 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require golang.org/x/net v0.22.0 // indirect require ( github.com/google/go-cmp v0.6.0 github.com/openimsdk/protocol v0.0.72 - github.com/openimsdk/tools v0.0.50-alpha.14 + github.com/openimsdk/tools v0.0.50-alpha.16 github.com/patrickmn/go-cache v2.1.0+incompatible golang.org/x/image v0.15.0 golang.org/x/sync v0.6.0 diff --git a/go.sum b/go.sum index 0cd887e88..c906a8ba8 100644 --- a/go.sum +++ b/go.sum @@ -27,8 +27,8 @@ github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= github.com/openimsdk/protocol v0.0.72 h1:K+vslwaR7lDXyBzb07UuEQITaqsgighz7NyXVIWsu6A= github.com/openimsdk/protocol v0.0.72/go.mod h1:OZQA9FR55lseYoN2Ql1XAHYKHJGu7OMNkUbuekrKCM8= -github.com/openimsdk/tools v0.0.50-alpha.14 h1:7mqOwJWHcG181KvkmU+oJn9ZpYNoUykt9WtuOQg4sDU= -github.com/openimsdk/tools v0.0.50-alpha.14/go.mod h1:h1cYmfyaVtgFbKmb1Cfsl8XwUOMTt8ubVUQrdGtsUh4= +github.com/openimsdk/tools v0.0.50-alpha.16 h1:bC1AQvJMuOHtZm8LZRvN8L5mH1Ws2VYdL+TLTs1iGSc= +github.com/openimsdk/tools v0.0.50-alpha.16/go.mod h1:h1cYmfyaVtgFbKmb1Cfsl8XwUOMTt8ubVUQrdGtsUh4= github.com/patrickmn/go-cache v2.1.0+incompatible h1:HRMgzkcYKYpi3C8ajMPV8OFXaaRUnok+kx1WdO15EQc= github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= diff --git a/internal/user/user.go b/internal/user/user.go index d80fef1dc..e9f1044e7 100644 --- a/internal/user/user.go +++ b/internal/user/user.go @@ -157,5 +157,5 @@ func (u *User) GetUsersInfoWithCache(ctx context.Context, cacheKeys []string) ([ if err != nil { return nil, err } - return datautil.MapToSlice(m), nil + return datautil.Values(m), nil }