this repo has no description
0
fork

Configure Feed

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

upgrade cbor-gen (#710)

use its improved handling of a []*string field

authored by

Brian Olson and committed by
GitHub
edf05048 2ca57ad9

+15 -5
+12 -2
api/bsky/cbor_gen.go
··· 6838 6838 _ = err 6839 6839 6840 6840 { 6841 - sval, err := cbg.ReadStringWithMax(cr, 1000000) 6841 + b, err := cr.ReadByte() 6842 6842 if err != nil { 6843 6843 return err 6844 6844 } 6845 + if b != cbg.CborNull[0] { 6846 + if err := cr.UnreadByte(); err != nil { 6847 + return err 6848 + } 6845 6849 6846 - t.LabelValues[i] = &sval 6850 + sval, err := cbg.ReadStringWithMax(cr, 1000000) 6851 + if err != nil { 6852 + return err 6853 + } 6854 + 6855 + t.LabelValues[i] = (*string)(&sval) 6856 + } 6847 6857 } 6848 6858 6849 6859 }
+1 -1
go.mod
··· 52 52 github.com/samber/slog-echo v1.8.0 53 53 github.com/stretchr/testify v1.9.0 54 54 github.com/urfave/cli/v2 v2.25.7 55 - github.com/whyrusleeping/cbor-gen v0.1.1-0.20240311221002-68b9f235c302 55 + github.com/whyrusleeping/cbor-gen v0.1.3-0.20240731173018-74d74643234c 56 56 github.com/whyrusleeping/go-did v0.0.0-20230824162731-404d1707d5d6 57 57 gitlab.com/yawning/secp256k1-voi v0.0.0-20230925100816-f2616030848b 58 58 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1
+2 -2
go.sum
··· 614 614 github.com/warpfork/go-wish v0.0.0-20220906213052-39a1cc7a02d0/go.mod h1:x6AKhvSSexNrVSrViXSHUEbICjmGXhtgABaHIySUSGw= 615 615 github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11 h1:5HZfQkwe0mIfyDmc1Em5GqlNRzcdtlv4HTNmdpt7XH0= 616 616 github.com/whyrusleeping/cbor v0.0.0-20171005072247-63513f603b11/go.mod h1:Wlo/SzPmxVp6vXpGt/zaXhHH0fn4IxgqZc82aKg6bpQ= 617 - github.com/whyrusleeping/cbor-gen v0.1.1-0.20240311221002-68b9f235c302 h1:MhInbXe4SzcImAKktUvWBCWZgcw6MYf5NfumTj1BhAw= 618 - github.com/whyrusleeping/cbor-gen v0.1.1-0.20240311221002-68b9f235c302/go.mod h1:pM99HXyEbSQHcosHc0iW7YFmwnscr+t9Te4ibko05so= 617 + github.com/whyrusleeping/cbor-gen v0.1.3-0.20240731173018-74d74643234c h1:Jmc9fHbd0LKFmS5CkLgczNUyW36UbiyvbHCG9xCTyiw= 618 + github.com/whyrusleeping/cbor-gen v0.1.3-0.20240731173018-74d74643234c/go.mod h1:pM99HXyEbSQHcosHc0iW7YFmwnscr+t9Te4ibko05so= 619 619 github.com/whyrusleeping/chunker v0.0.0-20181014151217-fe64bd25879f h1:jQa4QT2UP9WYv2nzyawpKMOCl+Z/jW7djv2/J50lj9E= 620 620 github.com/whyrusleeping/chunker v0.0.0-20181014151217-fe64bd25879f/go.mod h1:p9UJB6dDgdPgMJZs7UjUOdulKyRr9fqkS+6JKAInPy8= 621 621 github.com/whyrusleeping/go-did v0.0.0-20230824162731-404d1707d5d6 h1:yJ9/LwIGIk/c0CdoavpC9RNSGSruIspSZtxG3Nnldic=