mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-25 09:54:47 +01:00
rpc: bytestream: listen: filesystems request: reply with header
This commit is contained in:
parent
8bdcdd5ec6
commit
b87829817a
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user