mirror of
https://github.com/zrepl/zrepl.git
synced 2025-07-01 06:50:11 +02:00
rpc: remove FilesystemRequest.Direction (unused)
This commit is contained in:
@ -14,17 +14,9 @@ type Handler struct {
|
||||
|
||||
func (h Handler) HandleFilesystemRequest(r rpc.FilesystemRequest) (roots []zfs.DatasetPath, err error) {
|
||||
|
||||
var mapping zfs.DatasetMapping
|
||||
switch r.Direction {
|
||||
case rpc.DirectionPush:
|
||||
mapping = h.PushMapping
|
||||
case rpc.DirectionPull:
|
||||
mapping = h.PullMapping
|
||||
}
|
||||
|
||||
h.Logger.Printf("handling fsr: %#v", r)
|
||||
|
||||
if roots, err = zfs.ZFSListMapping(mapping); err != nil {
|
||||
if roots, err = zfs.ZFSListMapping(h.PullMapping); err != nil {
|
||||
h.Logger.Printf("handle fsr err: %v\n", err)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user