diff options
author | 2022-07-10 16:18:21 +0100 | |
---|---|---|
committer | 2022-07-10 17:18:21 +0200 | |
commit | 7cc40302a578264dff4edb3b007fc192b840c7d4 (patch) | |
tree | 82d78254373f1c18fdd6271aa324100cedaacc2d /vendor/codeberg.org/gruf/go-bitutil/flag.go | |
parent | [bugfix] Fix display names in thread view causing wrapping issues on small sc... (diff) | |
download | gotosocial-7cc40302a578264dff4edb3b007fc192b840c7d4.tar.xz |
[chore] consolidate caching libraries (#704)
* add miekg/dns dependency
* set/validate accountDomain
* move finger to dereferencer
* totally break GetRemoteAccount
* start reworking finger func a bit
* start reworking getRemoteAccount a bit
* move mention parts to namestring
* rework webfingerget
* use util function to extract webfinger parts
* use accountDomain
* rework finger again, final form
* just a real nasty commit, the worst
* remove refresh from account
* use new ASRepToAccount signature
* fix incorrect debug call
* fix for new getRemoteAccount
* rework GetRemoteAccount
* start updating tests to remove repetition
* break a lot of tests
Move shared test logic into the testrig,
rather than having it scattered all over
the place. This allows us to just mock
the transport controller once, and have
all tests use it (unless they need not to
for some other reason).
* fix up tests to use main mock httpclient
* webfinger only if necessary
* cheeky linting with the lads
* update mentionName regex
recognize instance accounts
* don't finger instance accounts
* test webfinger part extraction
* increase default worker count to 4 per cpu
* don't repeat regex parsing
* final search for discovered accountDomain
* be more permissive in namestring lookup
* add more extraction tests
* simplify GetParseMentionFunc
* skip long search if local account
* fix broken test
* consolidate to all use same caching libraries
Signed-off-by: kim <grufwub@gmail.com>
* perform more caching in the database layer
Signed-off-by: kim <grufwub@gmail.com>
* remove ASNote cache
Signed-off-by: kim <grufwub@gmail.com>
* update cache library, improve db tracing hooks
Signed-off-by: kim <grufwub@gmail.com>
* return ErrNoEntries if no account status IDs found, small formatting changes
Signed-off-by: kim <grufwub@gmail.com>
* fix tests, thanks tobi!
Signed-off-by: kim <grufwub@gmail.com>
Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
Diffstat (limited to 'vendor/codeberg.org/gruf/go-bitutil/flag.go')
-rw-r--r-- | vendor/codeberg.org/gruf/go-bitutil/flag.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/vendor/codeberg.org/gruf/go-bitutil/flag.go b/vendor/codeberg.org/gruf/go-bitutil/flag.go index 6e3b36c66..d8b0f8b66 100644 --- a/vendor/codeberg.org/gruf/go-bitutil/flag.go +++ b/vendor/codeberg.org/gruf/go-bitutil/flag.go @@ -1,7 +1,7 @@ package bitutil import ( - "codeberg.org/gruf/go-bytes" + "codeberg.org/gruf/go-byteutil" ) // Flags8 is a type-casted unsigned integer with helper @@ -173,7 +173,7 @@ func (f Flags8) Unset7() Flags8 { // String returns a human readable representation of Flags8. func (f Flags8) String() string { var val bool - var buf bytes.Buffer + var buf byteutil.Buffer buf.WriteByte('{') @@ -210,7 +210,7 @@ func (f Flags8) String() string { // GoString returns a more verbose human readable representation of Flags8. func (f Flags8) GoString() string { var val bool - var buf bytes.Buffer + var buf byteutil.Buffer buf.WriteString("bitutil.Flags8{") @@ -557,7 +557,7 @@ func (f Flags16) Unset15() Flags16 { // String returns a human readable representation of Flags16. func (f Flags16) String() string { var val bool - var buf bytes.Buffer + var buf byteutil.Buffer buf.WriteByte('{') @@ -618,7 +618,7 @@ func (f Flags16) String() string { // GoString returns a more verbose human readable representation of Flags16. func (f Flags16) GoString() string { var val bool - var buf bytes.Buffer + var buf byteutil.Buffer buf.WriteString("bitutil.Flags16{") @@ -1277,7 +1277,7 @@ func (f Flags32) Unset31() Flags32 { // String returns a human readable representation of Flags32. func (f Flags32) String() string { var val bool - var buf bytes.Buffer + var buf byteutil.Buffer buf.WriteByte('{') @@ -1386,7 +1386,7 @@ func (f Flags32) String() string { // GoString returns a more verbose human readable representation of Flags32. func (f Flags32) GoString() string { var val bool - var buf bytes.Buffer + var buf byteutil.Buffer buf.WriteString("bitutil.Flags32{") @@ -2669,7 +2669,7 @@ func (f Flags64) Unset63() Flags64 { // String returns a human readable representation of Flags64. func (f Flags64) String() string { var val bool - var buf bytes.Buffer + var buf byteutil.Buffer buf.WriteByte('{') @@ -2874,7 +2874,7 @@ func (f Flags64) String() string { // GoString returns a more verbose human readable representation of Flags64. func (f Flags64) GoString() string { var val bool - var buf bytes.Buffer + var buf byteutil.Buffer buf.WriteString("bitutil.Flags64{") |