rpc: bytestream: listen: filesystems request: reply with header

This commit is contained in:
Christian Schwarz 2017-04-30 23:44:07 +02:00
parent 8bdcdd5ec6
commit b87829817a

View File

@ -104,6 +104,13 @@ func ListenByteStreamRPC(conn io.ReadWriteCloser, handler RPCHandler) error {
respondWithError(encoder, EHandler, err) respondWithError(encoder, EHandler, err)
return conn.Close() return conn.Close()
} else { } else {
r := ResponseHeader{
RequestId: header.Id,
ResponseType: RFilesystems,
}
if err := encoder.Encode(&r); err != nil {
panic(err)
}
if err := encoder.Encode(&roots); err != nil { if err := encoder.Encode(&roots); err != nil {
panic(err) panic(err)
} }