Skip to content

Commit

Permalink
made GetPeers unexported
Browse files Browse the repository at this point in the history
  • Loading branch information
0xluk committed Mar 13, 2024
1 parent b718ab2 commit 3027ee1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qubic.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NewClient(ctx context.Context, nodeIP, nodePort string) (*Client, error) {

c := Client{conn: conn}

c.Peers, err = c.GetPeers(ctx)
c.Peers, err = c.getPeers(ctx)
if err != nil {
return nil, errors.Wrap(err, "getting Peers")
}
Expand All @@ -49,7 +49,7 @@ func NewClientWithConn(ctx context.Context, conn net.Conn) (*Client, error) {
return &Client{conn: conn}, nil
}

func (qc *Client) GetPeers(ctx context.Context) (types.PublicPeers, error) {
func (qc *Client) getPeers(ctx context.Context) (types.PublicPeers, error) {
var result types.PublicPeers
err := qc.sendRequest(ctx, types.CurrentTickInfoRequest, nil, &result)
if err != nil {
Expand Down

0 comments on commit 3027ee1

Please sign in to comment.