Skip to content

Commit 0def311

Browse files
committed
chore: touch up error
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
1 parent fe31f5d commit 0def311

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/rules.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func databaseImport(m dsl.Matcher) {
135135
}
136136

137137
// publishInTransaction detects calls to Publish inside database transactions
138-
// which can lead to connection deadlocks or other unexpected behavior.
138+
// which can lead to connection starvation.
139139
//
140140
//nolint:unused,deadcode,varnamelen
141141
func publishInTransaction(m dsl.Matcher) {
@@ -159,7 +159,7 @@ func publishInTransaction(m dsl.Matcher) {
159159
`).
160160
Where(m["ps"].Type.Is("pubsub.Pubsub")).
161161
At(m["ps"]).
162-
Report("Avoid calling Publish inside database transactions as this may lead to connection deadlocks. Move the Publish call outside the transaction.")
162+
Report("Avoid calling pubsub.Publish() inside database transactions as this may lead to connection deadlocks. Move the Publish() call outside the transaction.")
163163
}
164164

165165
// doNotCallTFailNowInsideGoroutine enforces not calling t.FailNow or

0 commit comments

Comments
 (0)