From ffe33aff3d14bd18e240f2389d5641c7d30ee6df Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Mon, 24 Sep 2018 12:26:55 +0200 Subject: [PATCH] fix pruner: protobuf one-ofs require non-zero value, even if no public fields --- daemon/pruner/pruner.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/pruner/pruner.go b/daemon/pruner/pruner.go index 013c161..83dd1bb 100644 --- a/daemon/pruner/pruner.go +++ b/daemon/pruner/pruner.go @@ -295,7 +295,9 @@ fsloop: rcReq := &pdu.ReplicationCursorReq{ Filesystem: tfs.Path, - Op: &pdu.ReplicationCursorReq_Get{}, + Op: &pdu.ReplicationCursorReq_Get{ + Get: &pdu.ReplicationCursorReq_GetOp{}, + }, } rc, err := receiver.ReplicationCursor(ctx, rcReq) if err != nil {