From 60eacb6c05e6a9084456953b506fee68b1d64765 Mon Sep 17 00:00:00 2001 From: Monet Lee Date: Fri, 2 Aug 2024 19:33:05 +0800 Subject: [PATCH 1/2] update dockerfile contents. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8090d968..c0076d9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,7 +43,7 @@ COPY --from=builder $SERVER_DIR/start-config.yml $SERVER_DIR/ COPY --from=builder $SERVER_DIR/go.mod $SERVER_DIR/ COPY --from=builder $SERVER_DIR/go.sum $SERVER_DIR/ -RUN go get github.com/openimsdk/v0.0.14-alpha.5 +RUN go get github.com/openimsdk/gomake@v0.0.14-alpha.5 # Set the command to run when the container starts ENTRYPOINT ["sh", "-c", "mage start && tail -f /dev/null"] From d38ea02f34c4a96662c37d8112f7963f2aedc093 Mon Sep 17 00:00:00 2001 From: Monet Lee Date: Fri, 2 Aug 2024 20:05:07 +0800 Subject: [PATCH 2/2] update field. --- internal/rpc/admin/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rpc/admin/token.go b/internal/rpc/admin/token.go index c06ad344..5036ba98 100644 --- a/internal/rpc/admin/token.go +++ b/internal/rpc/admin/token.go @@ -23,7 +23,7 @@ import ( "github.com/redis/go-redis/v9" ) -func (o *adminServer) CreateToken(ctx context.Context, req *admin.CreateTokenReq) (*admin.CreateTokenResp, error) { +func (o *adminServer) CreateToken(ctx context.Context, req *adminpb.CreateTokenReq) (*adminpb.CreateTokenResp, error) { token, expire, err := o.Token.CreateToken(req.UserID, req.UserType) if err != nil {