mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 00:20:00 +08:00
chore: make cpu usage more smooth (#3842)
This commit is contained in:
@@ -385,7 +385,7 @@ func (p *Parser) parsePathExpr() *ast.PathExpr {
|
||||
}
|
||||
|
||||
values = append(values, p.curTok)
|
||||
if p.peekTokenIs(token.LPAREN, token.Returns, token.AT_DOC, token.AT_HANDLER, token.SEMICOLON, token.RBRACE){
|
||||
if p.peekTokenIs(token.LPAREN, token.Returns, token.AT_DOC, token.AT_HANDLER, token.SEMICOLON, token.RBRACE) {
|
||||
break
|
||||
}
|
||||
if p.notExpectPeekTokenGotComment(p.curTokenNode().PeekFirstLeadingComment(), token.COLON, token.IDENT, token.INT) {
|
||||
|
||||
Reference in New Issue
Block a user