Skip to content

Commit

Permalink
refactor: rename Asnc to MessageHandler
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Ege <[email protected]>
  • Loading branch information
graugans committed Dec 24, 2023
1 parent 6848bf0 commit 02a018c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/pcic/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var (
notificationTicket []byte = []byte{'0', '0', '1', '0'}
)

type Async interface {
type MessageHandler interface {
Result(Frame)
Error(ErrorMessage)
Notification(NotificationMessage)
Expand All @@ -55,7 +55,7 @@ type ErrorMessage struct {
Message string
}

func (p *PCIC) Receive(reader io.Reader, handler Async) error {
func (p *PCIC) Receive(reader io.Reader, handler MessageHandler) error {
header := make([]byte, headerSize)
n, err := io.ReadFull(reader, header)
if err != nil {
Expand Down

0 comments on commit 02a018c

Please sign in to comment.