Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
0xluk committed Mar 1, 2024
1 parent 885fda8 commit 01e2965
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions rpc/rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ type Server struct {
listenAddrGRPC string
listenAddrHTTP string
store *store.PebbleStore
qc *qubic.Connection
qc *qubic.Client
}

func NewServer(listenAddrGRPC, listenAddrHTTP string, store *store.PebbleStore, qc *qubic.Connection) *Server {
func NewServer(listenAddrGRPC, listenAddrHTTP string, store *store.PebbleStore, qc *qubic.Client) *Server {
return &Server{
listenAddrGRPC: listenAddrGRPC,
listenAddrHTTP: listenAddrHTTP,
Expand Down
6 changes: 3 additions & 3 deletions validator/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import (
)

type Validator struct {
qu *qubic.Connection
qu *qubic.Client
store *store.PebbleStore
}

func NewValidator(qu *qubic.Connection, store *store.PebbleStore) *Validator {
func NewValidator(qu *qubic.Client, store *store.PebbleStore) *Validator {
return &Validator{qu: qu, store: store}
}

Expand Down Expand Up @@ -126,7 +126,7 @@ func (v *Validator) ValidateTick(ctx context.Context, tickNumber uint64) error {
return nil
}

func getComputorsAndValidate(ctx context.Context, qu *qubic.Connection) (types.Computors, error) {
func getComputorsAndValidate(ctx context.Context, qu *qubic.Client) (types.Computors, error) {
comps, err := qu.GetComputors(ctx)
if err != nil {
return types.Computors{}, errors.Wrap(err, "getting comps")
Expand Down

0 comments on commit 01e2965

Please sign in to comment.