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:
Ammar Bandukwala
2023-08-24 15:18:42 -05:00
committed by GitHub
parent 7f14b50dbe
commit 630ec55c48
2 changed files with 95 additions and 85 deletions
+1 -1
View File
@@ -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 = ""