this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

mst: clarify in comment that fields are nullable, not optional (#766)

See also: https://github.com/bluesky-social/atproto-website/pull/346

authored by

bnewbold and committed by
GitHub
6d11dbf0 f77c6b68

+2 -2
+2 -2
mst/mst.go
··· 113 113 // MST tree node as gets serialized to CBOR. Note that the CBOR fields are all 114 114 // single-character. 115 115 type nodeData struct { 116 - Left *cid.Cid `cborgen:"l"` // [optional] pointer to lower-level subtree to the "left" of this path/key 116 + Left *cid.Cid `cborgen:"l"` // [nullable] pointer to lower-level subtree to the "left" of this path/key 117 117 Entries []treeEntry `cborgen:"e"` // ordered list of entries at this node 118 118 } 119 119 ··· 122 122 PrefixLen int64 `cborgen:"p"` // count of characters shared with previous path/key in tree 123 123 KeySuffix []byte `cborgen:"k"` // remaining part of path/key (appended to "previous key") 124 124 Val cid.Cid `cborgen:"v"` // CID pointer at this path/key 125 - Tree *cid.Cid `cborgen:"t"` // [optional] pointer to lower-level subtree to the "right" of this path/key entry 125 + Tree *cid.Cid `cborgen:"t"` // [nullable] pointer to lower-level subtree to the "right" of this path/key entry 126 126 } 127 127 128 128 // MerkleSearchTree represents an MST tree node (NodeData type). It can be in