Skip to content

Commit

Permalink
Switch to service~1
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Mihic committed Mar 17, 2015
1 parent 1f2c11f commit a0631c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ func (m *callReq) read(r typed.ReadBuffer) error {
return err
}

serviceNameLen, err := r.ReadUint16()
serviceNameLen, err := r.ReadByte()
if err != nil {
return err
}
Expand Down Expand Up @@ -313,7 +313,7 @@ func (m *callReq) write(w typed.WriteBuffer) error {
return err
}

if err := w.WriteUint16(uint16(len(m.Service))); err != nil {
if err := w.WriteByte(byte(len(m.Service))); err != nil {
return err
}

Expand Down

0 comments on commit a0631c0

Please sign in to comment.