Refactor code

pull/131/head
wenxu12345 3 years ago
parent 7138d7ac59
commit 6e14375b86

@ -244,7 +244,7 @@ func CreateGroup(c *gin.Context) {
client := rpc.NewGroupClient(etcdConn)
RpcResp, err := client.CreateGroup(context.Background(), req)
if err != nil {
log.NewError(req.OperationID, "CreateGroup failed", err.Error(), req.String())
log.NewError(req.OperationID, "CreateGroup failed ", err.Error(), req.String())
c.JSON(http.StatusInternalServerError, gin.H{"errCode": 500, "errMsg": "call rpc server failed"})
return
}

Loading…
Cancel
Save