Skip to content

Commit

Permalink
Merge pull request #154 from niclic/omit-empty-federation-values
Browse files Browse the repository at this point in the history
Exclude expires field from federation definition when value is zero.
  • Loading branch information
michaelklishin authored May 30, 2020
2 parents 261dfa4 + 533195c commit fcde2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion federation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit fcde2fd

Please sign in to comment.