From bcb10cff11b18864bcfbbb6e689e40185973f672 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 15 Dec 2014 15:26:46 -0800 Subject: [PATCH] consul: TombstoneReapRequestType -> TombstoneRequestType --- consul/structs/structs.go | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/consul/structs/structs.go b/consul/structs/structs.go index 01a4f455fa..4b9263c54b 100644 --- a/consul/structs/structs.go +++ b/consul/structs/structs.go @@ -23,7 +23,7 @@ const ( KVSRequestType SessionRequestType ACLRequestType - TombstoneReapRequestType + TombstoneRequestType ) const ( @@ -532,14 +532,21 @@ type EventFireResponse struct { QueryMeta } -// TombstoneReapRequest is used to trigger a reaping of the tombstones -type TombstoneReapRequest struct { +type TombstoneOp string + +const ( + TombstoneReap TombstoneOp = "reap" +) + +// TombstoneRequest is used to trigger a reaping of the tombstones +type TombstoneRequest struct { Datacenter string + Op TombstoneOp ReapIndex uint64 WriteRequest } -func (r *TombstoneReapRequest) RequestDatacenter() string { +func (r *TombstoneRequest) RequestDatacenter() string { return r.Datacenter }