Skip to content

Commit b02dd01

Browse files
committed
Update IGP
1 parent 02d971b commit b02dd01

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cmd/statshouse-igp/ingress_proxy.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,11 @@ func (p *proxyConn) run() {
428428
return // server shutdown
429429
}
430430
if firstReq.tip == rpcInvokeReqHeaderTLTag {
431-
if firstReq.RequestTag() == constants.StatshouseGetConfig3 {
432-
// GetConfig3 does not send shardReplica
431+
switch firstReq.RequestTag() {
432+
case constants.StatshouseGetConfig2, constants.StatshouseGetConfig3:
433+
// GetConfigX does not send shardReplica
433434
if res := firstReq.process(p); res.Error() != nil {
434-
return // failed serve GetConfig3 request
435+
return // failed to serve GetConfigX request
435436
}
436437
continue
437438
}

0 commit comments

Comments
 (0)