From fa606017fca8e68994b8ca9349de0de6575a7a2a Mon Sep 17 00:00:00 2001 From: hananothman <58610125+hananothman@users.noreply.github.com> Date: Mon, 25 Jan 2021 09:39:29 -0500 Subject: [PATCH] Use more respectful terms --- cache.go | 2 +- database.go | 2 +- webrisk_client.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cache.go b/cache.go index e374e7b..3c4cca5 100644 --- a/cache.go +++ b/cache.go @@ -44,7 +44,7 @@ const ( ) // cache caches results from API calls to SearchHashesRequest to reduce -// network calls for recently requested items. Since the global blacklist is +// network calls for recently requested items. Since the global blocklist is // constantly changing, the Web Risk API defines TTLs for how long entries // can stay alive in the cache. type cache struct { diff --git a/database.go b/database.go index e76c4ce..58155e6 100644 --- a/database.go +++ b/database.go @@ -39,7 +39,7 @@ const ( ) // database tracks the state of the threat lists published by the Webrisk API. -// Since the global blacklist is constantly changing, the contents of the +// Since the global blocklist is constantly changing, the contents of the // database needs to be periodically synced with the Webrisk servers in // order to provide protection for the latest threats. // diff --git a/webrisk_client.go b/webrisk_client.go index 120e4f3..46c5866 100644 --- a/webrisk_client.go +++ b/webrisk_client.go @@ -84,7 +84,7 @@ const ( DefaultServerURL = "webrisk.googleapis.com" // DefaultUpdatePeriod is the default period for how often WebriskClient will - // reload its blacklist database. + // reload its blocklist database. DefaultUpdatePeriod = 30 * time.Minute // DefaultID and DefaultVersion are the default client ID and Version @@ -155,7 +155,7 @@ type Config struct { // DBPath is a path to a persistent database file. // If empty, WebriskClient operates in a non-persistent manner. - // This means that blacklist results will not be cached beyond the lifetime + // This means that blocklist results will not be cached beyond the lifetime // of the WebriskClient object. DBPath string @@ -342,7 +342,7 @@ func (wr *WebriskClient) WaitUntilReady(ctx context.Context) error { // The outer dimension is across all URLs requested, and will always have the // same length as urls regardless of whether an error occurs or not. // The inner dimension is across every fragment that a given URL produces. -// For some URL at index i, one can check for a hit on any blacklist by +// For some URL at index i, one can check for a hit on any blocklist by // checking if len(threats[i]) > 0. // The ThreatEntryType field in the inner ThreatType will be set to // ThreatEntryType_URL as this is a URL lookup.