Skip to content

Commit

Permalink
change handler name
Browse files Browse the repository at this point in the history
  • Loading branch information
hea9549 authored and junbeomlee committed Aug 11, 2018
1 parent 8552740 commit 44e0eb6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ sample icode : https://github.com/junbeomlee/learn-icode
sdk-go handler is like below

```go
type TransactionHandler interface {
type RequestHandler interface {
Name() string
Versions() []string
Handle(request *pb.Request, cell *Cell) *pb.Response
Expand Down
2 changes: 1 addition & 1 deletion handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package sdk

import "github.com/it-chain/sdk/pb"

type TransactionHandler interface {
type RequestHandler interface {
Name() string
Versions() []string
Handle(request *pb.Request, cell *Cell) *pb.Response
Expand Down
4 changes: 2 additions & 2 deletions ibox.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

type IBox struct {
port int
handler TransactionHandler
handler RequestHandler
}

func NewIBox(port int) *IBox {
Expand All @@ -36,7 +36,7 @@ func NewIBox(port int) *IBox {
}
}

func (i *IBox) SetHandler(handler TransactionHandler) {
func (i *IBox) SetHandler(handler RequestHandler) {
i.handler = handler
}

Expand Down

0 comments on commit 44e0eb6

Please sign in to comment.