treewide: remove shadowing of stdlib functions
Change-Id: Iaccb22769d53568f6a4004924c218b9929090d89
Reviewed-on: https://review.monogon.dev/c/monogon/+/2957
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/cloud/bmaas/bmdb/webug/webug.go b/cloud/bmaas/bmdb/webug/webug.go
index e6e1be7..f4d3e4a 100644
--- a/cloud/bmaas/bmdb/webug/webug.go
+++ b/cloud/bmaas/bmdb/webug/webug.go
@@ -36,9 +36,9 @@
schema *reflection.Schema
// muSchema locks schema for updates.
muSchema sync.RWMutex
- // strictConsistency, when enabled, makes webug render its views with the
- // freshest available data, potentially conflicting with online
- // transactions. This should only be enabled during testing, as it tends to
+ // strictConsistency, when enabled, makes webug render its views with the
+ // freshest available data, potentially conflicting with online
+ // transactions. This should only be enabled during testing, as it tends to
// clog up the database query planner and make everything slow.
strictConsistency bool
}
@@ -87,9 +87,9 @@
// Swap the current schema if necessary.
cur := s.curSchema().Version
- new := schema.Version
- if cur != new {
- klog.Infof("Got new schema: %s -> %s", cur, new)
+ newVer := schema.Version
+ if cur != newVer {
+ klog.Infof("Got new schema: %s -> %s", cur, newVer)
s.muSchema.Lock()
s.schema = schema
s.muSchema.Unlock()