mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-08 21:47:17 +08:00
feat: cache optimize
This commit is contained in:
parent
a736022c8e
commit
32c49d1b75
@ -17,8 +17,6 @@ package third
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/OpenIMSDK/tools/errs"
|
||||
"github.com/OpenIMSDK/tools/mw/specialerror"
|
||||
"net/url"
|
||||
"time"
|
||||
|
||||
@ -80,12 +78,12 @@ func Start(client discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) e
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
specialerror.AddErrHandler(func(err error) errs.CodeError {
|
||||
if o.IsNotFound(err) {
|
||||
return errs.ErrRecordNotFound
|
||||
}
|
||||
return nil
|
||||
})
|
||||
//specialerror.AddErrHandler(func(err error) errs.CodeError {
|
||||
// if o.IsNotFound(err) {
|
||||
// return errs.ErrRecordNotFound
|
||||
// }
|
||||
// return nil
|
||||
//})
|
||||
third.RegisterThirdServer(server, &thirdServer{
|
||||
apiURL: apiURL,
|
||||
thirdDatabase: controller.NewThirdDatabase(cache.NewMsgCacheModel(rdb), db),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user