run gofumpt cleanup across code-base (#14015)

This commit is contained in:
Harshavardhana
2022-01-02 09:15:06 -08:00
committed by GitHub
parent 6f474982ed
commit f527c708f2
250 changed files with 1201 additions and 1264 deletions

View File

@@ -326,7 +326,7 @@ func (sys *NotificationSys) DownloadProfilingData(ctx context.Context, writer io
header, zerr := zip.FileInfoHeader(dummyFileInfo{
name: fmt.Sprintf("profile-%s-%s", client.host.String(), typ),
size: int64(len(data)),
mode: 0600,
mode: 0o600,
modTime: UTCNow(),
isDir: false,
sys: nil,
@@ -376,7 +376,7 @@ func (sys *NotificationSys) DownloadProfilingData(ctx context.Context, writer io
header, zerr := zip.FileInfoHeader(dummyFileInfo{
name: fmt.Sprintf("profile-%s-%s", thisAddr, typ),
size: int64(len(data)),
mode: 0600,
mode: 0o600,
modTime: UTCNow(),
isDir: false,
sys: nil,
@@ -432,7 +432,7 @@ func (sys *NotificationSys) SignalService(sig serviceSignal) []NotificationPeerE
// updateBloomFilter will cycle all servers to the current index and
// return a merged bloom filter if a complete one can be retrieved.
func (sys *NotificationSys) updateBloomFilter(ctx context.Context, current uint64) (*bloomFilter, error) {
var req = bloomFilterRequest{
req := bloomFilterRequest{
Current: current,
Oldest: current - dataUsageUpdateDirCycles,
}