mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(coderd): remove rate limits from agent metadata (#9308)
Include the full update message in the PubSub notification so that we don't have to refresh metadata from the DB and can avoid rate limiting.
This commit is contained in:
@@ -1153,7 +1153,7 @@ func TestWorkspaceAgent_Metadata(t *testing.T) {
|
||||
require.Len(t, update, 3)
|
||||
check(wantMetadata1, update[0], true)
|
||||
|
||||
const maxValueLen = 32 << 10
|
||||
const maxValueLen = 2048
|
||||
tooLongValueMetadata := wantMetadata1
|
||||
tooLongValueMetadata.Value = strings.Repeat("a", maxValueLen*2)
|
||||
tooLongValueMetadata.Error = ""
|
||||
|
||||
Reference in New Issue
Block a user