Skip to content

Commit

Permalink
first batch
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Apr 23, 2023
1 parent 2f8d0b3 commit 06188c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions contrib/backport/backport.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright 2023 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

//nolint:forbidigo

package main

import (
Expand Down
4 changes: 2 additions & 2 deletions modules/log/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ func (m *MultiChannelledLog) Start() {
for _, logger := range m.loggers {
err := logger.LogEvent(event)
if err != nil {
fmt.Println(err)
fmt.Println(err) //nolint:forbidigo
}
}
m.rwmutex.RUnlock()
Expand Down Expand Up @@ -379,7 +379,7 @@ func (m *MultiChannelledLog) emptyQueue() bool {
for _, logger := range m.loggers {
err := logger.LogEvent(event)
if err != nil {
fmt.Println(err)
fmt.Println(err) //nolint:forbidigo
}
}
m.rwmutex.RUnlock()
Expand Down
1 change: 0 additions & 1 deletion modules/queue/unique_queue_disk_channel_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (

func TestPersistableChannelUniqueQueue(t *testing.T) {
tmpDir := t.TempDir()
fmt.Printf("TempDir %s\n", tmpDir)
_ = log.NewLogger(1000, "console", "console", `{"level":"warn","stacktracelevel":"NONE","stderr":true}`)

// Common function to create the Queue
Expand Down

0 comments on commit 06188c8

Please sign in to comment.