Skip to content

Commit

Permalink
events: omitempty on 't' in header (#952)
Browse files Browse the repository at this point in the history
I'm not sure what the timeline would be on getting this deployed; we are
in the middle of refactoring the relay.

On the other hand it is a pretty small/simple change.

closes: [#3086](bluesky-social/atproto#3086)
  • Loading branch information
bnewbold authored Feb 22, 2025
2 parents affa75c + d721f5d commit 2503553
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 19 deletions.
44 changes: 26 additions & 18 deletions events/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const (

type EventHeader struct {
Op int64 `cborgen:"op"`
MsgType string `cborgen:"t"`
MsgType string `cborgen:"t,omitempty"`
}

var (
Expand Down

0 comments on commit 2503553

Please sign in to comment.