Merge pull request #16271 from johnshajiang/cleanup-cluster

tests: cleanup unnecessary assignment in cluster.go
This commit is contained in:
Benjamin Wang 2023-07-20 08:16:36 +01:00 committed by GitHub
commit cd453b931f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -783,7 +783,7 @@ func (m *Member) listenGRPC() error {
}
addr := grpcListener.Addr().String()
host, port, err = net.SplitHostPort(addr)
_, port, err = net.SplitHostPort(addr)
if err != nil {
return fmt.Errorf("failed to parse grpc listen port from address %s (%v)", addr, err)
}