mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 20:36:26 +02:00
Remove another use gopsutil/host. (#13390)
This commit is contained in:
parent
0cc6326088
commit
14d2f08b0f
@ -3,6 +3,7 @@ package vault
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
"os"
|
||||
"runtime"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
@ -12,7 +13,6 @@ import (
|
||||
"github.com/hashicorp/vault/helper/forwarding"
|
||||
"github.com/hashicorp/vault/physical/raft"
|
||||
"github.com/hashicorp/vault/vault/replication"
|
||||
"github.com/shirou/gopsutil/host"
|
||||
)
|
||||
|
||||
type forwardedRequestRPCServer struct {
|
||||
@ -117,10 +117,10 @@ type forwardingClient struct {
|
||||
func (c *forwardingClient) startHeartbeat() {
|
||||
go func() {
|
||||
clusterAddr := c.core.ClusterAddr()
|
||||
h, _ := host.Info()
|
||||
hostname, _ := os.Hostname()
|
||||
ni := NodeInformation{
|
||||
ApiAddr: c.core.redirectAddr,
|
||||
Hostname: h.Hostname,
|
||||
Hostname: hostname,
|
||||
Mode: "standby",
|
||||
}
|
||||
tick := func() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user