X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/3178ae580a3fe97d6a1167b4346d209f04e9b7e3..32d7bb7e1d8c96f93c0d24884fe038c477c4df02:/hotline/ui.go?ds=inline diff --git a/hotline/ui.go b/hotline/ui.go index 6eba011..709137e 100644 --- a/hotline/ui.go +++ b/hotline/ui.go @@ -208,11 +208,12 @@ func (ui *UI) joinServer(addr, login, password string) error { buf := make([]byte, len(scanner.Bytes())) copy(buf, scanner.Bytes()) - t, _, err := ReadTransaction(buf) + var t Transaction + _, err := t.Write(buf) if err != nil { break } - if err := ui.HLClient.HandleTransaction(t); err != nil { + if err := ui.HLClient.HandleTransaction(&t); err != nil { ui.HLClient.Logger.Errorw("Error handling transaction", "err", err) } }