mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 16:32:25 -05:00
[bugfix] fix possible domain blockcache nil ptr + add debug String() func (#1755)
This commit is contained in:
parent
8275d70e38
commit
11e843a273
2 changed files with 41 additions and 6 deletions
2
internal/cache/domain/domain_test.go
vendored
2
internal/cache/domain/domain_test.go
vendored
|
|
@ -69,7 +69,9 @@ func TestBlockCache(t *testing.T) {
|
|||
}
|
||||
|
||||
// Clear the cache
|
||||
t.Logf("%+v\n", c)
|
||||
c.Clear()
|
||||
t.Logf("%+v\n", c)
|
||||
|
||||
knownErr := errors.New("known error")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue