mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
change sync to detect deadlock
This commit is contained in:
@@ -2,8 +2,8 @@ package settings
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
sync "github.com/sasha-s/go-deadlock"
|
||||
"sort"
|
||||
"sync"
|
||||
|
||||
"github.com/anacrolix/torrent"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package torr
|
||||
|
||||
import (
|
||||
sync "github.com/sasha-s/go-deadlock"
|
||||
"log"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"server/settings"
|
||||
|
||||
@@ -2,7 +2,7 @@ package torrstor
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sync"
|
||||
sync "github.com/sasha-s/go-deadlock"
|
||||
)
|
||||
|
||||
type buffer struct {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package torrstor
|
||||
|
||||
import (
|
||||
sync "github.com/sasha-s/go-deadlock"
|
||||
"sort"
|
||||
"sync"
|
||||
|
||||
"github.com/anacrolix/torrent"
|
||||
"server/log"
|
||||
|
||||
@@ -2,8 +2,8 @@ package torrstor
|
||||
|
||||
import (
|
||||
"errors"
|
||||
sync "github.com/sasha-s/go-deadlock"
|
||||
"io"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/anacrolix/torrent/storage"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package torrstor
|
||||
|
||||
import (
|
||||
sync "github.com/sasha-s/go-deadlock"
|
||||
"io"
|
||||
"sync"
|
||||
|
||||
"github.com/anacrolix/torrent"
|
||||
"server/log"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package torrstor
|
||||
|
||||
import (
|
||||
"sync"
|
||||
sync "github.com/sasha-s/go-deadlock"
|
||||
|
||||
"server/torr/storage"
|
||||
|
||||
|
||||
@@ -5,9 +5,10 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"sort"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
sync "github.com/sasha-s/go-deadlock"
|
||||
|
||||
"server/log"
|
||||
"server/settings"
|
||||
"server/torr/state"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"sync"
|
||||
sync "github.com/sasha-s/go-deadlock"
|
||||
)
|
||||
|
||||
func ParallelFor(begin, end int, fn func(i int)) {
|
||||
|
||||
Reference in New Issue
Block a user