refactor: sender -> stream

This commit is contained in:
timeshifter
2021-12-02 14:53:52 +01:00
parent 94bf4769ff
commit 65dc88e2ea
+2 -2
View File
@@ -261,10 +261,10 @@ class ZFS:
if old_snap == new_snap:
raise ValueError("Cannot send stream, snapshots are identical.")
print(f" {old_snap} -> {new_snap}")
sender = Popen(
stream = Popen(
[config.ZFS, "send", "-R", "-I", str(old_snap), str(new_snap)], stdout=PIPE
)
return sender
return stream
@staticmethod
def receive(stream: Popen[str], pool: Pool):