mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
Merge remote-tracking branch 'origin/errcode' into errcode
This commit is contained in:
commit
a990e6f19d
@ -54,7 +54,7 @@ services:
|
||||
|
||||
|
||||
zookeeper:
|
||||
image: wurstmeister/zookeeper:latest
|
||||
image: zookeeper
|
||||
ports:
|
||||
- 2181:2181
|
||||
container_name: zookeeper
|
||||
|
@ -1,14 +1,14 @@
|
||||
package msggateway
|
||||
|
||||
import (
|
||||
context2 "context"
|
||||
"errors"
|
||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/discoveryregistry"
|
||||
"net/http"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/discoveryregistry"
|
||||
|
||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
|
||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/tokenverify"
|
||||
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
|
||||
@ -198,7 +198,7 @@ func (ws *WsServer) wsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
httpError(context, errs.ErrConnArgsErr)
|
||||
return
|
||||
}
|
||||
log.ZDebug(context2.Background(), "conn", "platformID", platformID)
|
||||
// log.ZDebug(context2.Background(), "conn", "platformID", platformID)
|
||||
err := tokenverify.WsVerifyToken(token, userID, platformID)
|
||||
if err != nil {
|
||||
httpError(context, err)
|
||||
|
@ -8,5 +8,5 @@ import (
|
||||
type ZkLogger struct{}
|
||||
|
||||
func (l *ZkLogger) Printf(format string, a ...interface{}) {
|
||||
ZInfo(context.Background(), fmt.Sprintf(format, a...))
|
||||
ZInfo(context.Background(), "zookeeper output", "msg", fmt.Sprintf(format, a...))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user