for _, f := range t.Fields {
var fn FileNameWithInfo
- err = fn.UnmarshalBinary(f.Data)
+ _, err = fn.Write(f.Data)
if err != nil {
return nil, nil
}
return c.Connection.Close()
}
-
func (c *Client) HandleTransactions(ctx context.Context) error {
// Create a new scanner for parsing incoming bytes into transaction tokens
scanner := bufio.NewScanner(c.Connection)