Skip to content

Commit 030b4b9

Browse files
authored
Merge pull request #25 from google/language
Use more respectful terms
2 parents d9318f3 + fa60601 commit 030b4b9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const (
4444
)
4545

4646
// cache caches results from API calls to SearchHashesRequest to reduce
47-
// network calls for recently requested items. Since the global blacklist is
47+
// network calls for recently requested items. Since the global blocklist is
4848
// constantly changing, the Web Risk API defines TTLs for how long entries
4949
// can stay alive in the cache.
5050
type cache struct {

database.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const (
3939
)
4040

4141
// database tracks the state of the threat lists published by the Webrisk API.
42-
// Since the global blacklist is constantly changing, the contents of the
42+
// Since the global blocklist is constantly changing, the contents of the
4343
// database needs to be periodically synced with the Webrisk servers in
4444
// order to provide protection for the latest threats.
4545
//

webrisk_client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const (
8484
DefaultServerURL = "webrisk.googleapis.com"
8585

8686
// DefaultUpdatePeriod is the default period for how often WebriskClient will
87-
// reload its blacklist database.
87+
// reload its blocklist database.
8888
DefaultUpdatePeriod = 30 * time.Minute
8989

9090
// DefaultID and DefaultVersion are the default client ID and Version
@@ -155,7 +155,7 @@ type Config struct {
155155

156156
// DBPath is a path to a persistent database file.
157157
// If empty, WebriskClient operates in a non-persistent manner.
158-
// This means that blacklist results will not be cached beyond the lifetime
158+
// This means that blocklist results will not be cached beyond the lifetime
159159
// of the WebriskClient object.
160160
DBPath string
161161

@@ -342,7 +342,7 @@ func (wr *WebriskClient) WaitUntilReady(ctx context.Context) error {
342342
// The outer dimension is across all URLs requested, and will always have the
343343
// same length as urls regardless of whether an error occurs or not.
344344
// The inner dimension is across every fragment that a given URL produces.
345-
// For some URL at index i, one can check for a hit on any blacklist by
345+
// For some URL at index i, one can check for a hit on any blocklist by
346346
// checking if len(threats[i]) > 0.
347347
// The ThreatEntryType field in the inner ThreatType will be set to
348348
// ThreatEntryType_URL as this is a URL lookup.

0 commit comments

Comments
 (0)