]> Cypherpunks.ru repositories - goredo.git/commitdiff
Remove useless locks
authorSergey Matveev <stargrave@stargrave.org>
Sat, 7 Oct 2023 17:31:12 +0000 (20:31 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sat, 7 Oct 2023 17:31:12 +0000 (20:31 +0300)
run.go

diff --git a/run.go b/run.go
index 037e7bd330433a16fd19f4f80e17e22c4d9e1a95..bf66bc96cbd1855fbafed1420010a6a5a9ec7602 100644 (file)
--- a/run.go
+++ b/run.go
@@ -635,9 +635,7 @@ func runScript(tgt *Tgt, errs chan error, forced, traced bool) error {
                                }
                                if fdStderr != nil {
                                        ts.FromTime(time.Now())
-                                       LogMutex.Lock()
                                        fmt.Fprintln(fdStderr, tai64n.Encode(ts[:]), line)
-                                       LogMutex.Unlock()
                                }
                                if StderrSilent {
                                        continue