Skip to content

Commit

Permalink
Remove another use gopsutil/host. (#13390)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncabatoff authored Dec 10, 2021
1 parent 0cc6326 commit 14d2f08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vault/request_forwarding_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package vault
import (
"context"
"net/http"
"os"
"runtime"
"sync/atomic"
"time"
Expand All @@ -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 {
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit 14d2f08

Please sign in to comment.