Add //nolint: gomnd to peer.Log context

This commit is contained in:
Fernando Barbosa 2024-04-12 11:32:45 -03:00
parent 8fd8b8f748
commit 6a063b6e7b

View file

@ -89,7 +89,7 @@ func (w *LineWriter) Write(p []byte) (n int, err error) {
Line: w.num,
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) //nolint: gomnd
defer cancel()
if err := w.peer.Log(ctx, line); err != nil {