Commit 4b83e393 authored by Clara Engler's avatar Clara Engler
Browse files

tor-netdoc: Change Option<NumericBoolean> to NumericBoolean

It is weird to have three possible states for truthiness here.
This commit removes the Option in favor of the inner type while adding a
TODO comment to somehow find a way to skip this during encoding.
parent 9fbca450
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -153,7 +153,8 @@ pub struct RouterDesc {
    /// `hibernating` --- Whether the relay is hibernating.
    ///
    /// <https://spec.torproject.org/dir-spec/server-descriptor-format.html#item:hibernating>
    pub hibernating: Option<NumericBoolean>,
    // TODO: Mark this as `netdoc(default)` and skip during encoding if false.
    pub hibernating: NumericBoolean,

    /// `uptime` --- How long this relay has been continously running
    ///