From 533195c884de6511c487dfe7bb9dabfa4f76c38c Mon Sep 17 00:00:00 2001 From: Raymond Fallon Date: Tue, 26 May 2020 22:40:09 -0400 Subject: [PATCH] Exclude expires if value is zero. - value must be a positive integer. --- federation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federation.go b/federation.go index 067c5c8..df74b78 100644 --- a/federation.go +++ b/federation.go @@ -8,7 +8,7 @@ import ( // that will be used by federation links. type FederationDefinition struct { Uri string `json:"uri"` - Expires int `json:"expires"` + Expires int `json:"expires,omitempty"` MessageTTL int32 `json:"message-ttl"` MaxHops int `json:"max-hops"` PrefetchCount int `json:"prefetch-count"`