Skip to content

Commit

Permalink
Adding json to string
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shubh committed Jun 12, 2024
1 parent a8f755e commit 29e9fa7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions util/pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package node

import (
"encoding/json"
"fmt"
"os"

"github.com/NetSepio/erebrus/core"
Expand Down Expand Up @@ -124,8 +123,8 @@ func CreateNodeStatus(address string, id string, startTimeStamp int64, name stri
// IpInfoTimezone: core.GlobalIPInfo.Timezone,
Version: "v1",
CodeHash: "xxxxxxxxxxxxxxxxxxx",
SystemInfo: fmt.Sprintf("%+v\n", GetOSInfo()),
IpInfo: fmt.Sprintf("%+v\n", GetIPInfo()),
SystemInfo: ToJSON(GetOSInfo()),
IpInfo: ToJSON(GetIPInfo()),
}

return nodeStatus
Expand Down

0 comments on commit 29e9fa7

Please sign in to comment.