adding basic peer tests
This commit is contained in:
@@ -142,7 +142,7 @@ func (p *Peer) BuildSingleFileMessage(filename string, message []byte) ([]meowli
|
||||
msg.From = p.MyIdentity.Public
|
||||
file.Filename = fi.Name()
|
||||
file.Chunk = uint32(chunk)
|
||||
file.Data = b[:readTotal]
|
||||
file.Data = append([]byte(nil), b[:readTotal]...)
|
||||
file.Size = uint64(fi.Size())
|
||||
msg.Files = append(msg.Files, &file)
|
||||
msg.Type = "1"
|
||||
|
||||
Reference in New Issue
Block a user