Skip to content

Commit

Permalink
Rename Consume to NewRPC
Browse files Browse the repository at this point in the history
  • Loading branch information
pouya-eghbali committed Apr 8, 2024
1 parent f2bed6d commit 049c383
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var consumerCmd = &cobra.Command{
conn.Start()

handler := handler.NewConsumerHandler(correctnessService, uniswapService, evmLogService)
client.Consume(handler)
client.NewRPC(handler)

server.New(
gql.WithGraphQL(),
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var workerCmd = &cobra.Command{
conn.Start()

handler := handler.NewWorkerHandler()
client.Consume(handler)
client.NewRPC(handler)

scheduler.Start()
},
Expand Down
2 changes: 1 addition & 1 deletion internal/transport/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/KenshiTech/unchained/transport/client/handler"
)

func Consume(handler handler.Handler) {
func NewRPC(handler handler.Handler) {
incoming := conn.Read()

go func() {
Expand Down

0 comments on commit 049c383

Please sign in to comment.