Remove YAML/MD lint configs, reformat stdlib imports

This commit is contained in:
Lawrence, Rendall
2022-04-12 18:10:51 +03:00
parent ec49168db9
commit c1956d68f6
28 changed files with 57 additions and 49 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
package memory
import (
"github.com/sot-tech/mochi/storage"
"github.com/sot-tech/mochi/storage/test"
"testing"
"time"
"github.com/sot-tech/mochi/storage"
"github.com/sot-tech/mochi/storage/test"
)
func createNew() storage.Storage {
+2 -1
View File
@@ -2,8 +2,9 @@ package storage
import (
"encoding/binary"
"github.com/sot-tech/mochi/bittorrent"
"net"
"github.com/sot-tech/mochi/bittorrent"
)
// Pair - some key-value pair, used for BulkPut
+4 -3
View File
@@ -3,13 +3,14 @@ package redis
import (
"context"
"errors"
"github.com/go-redsync/redsync/v4"
"github.com/go-redsync/redsync/v4/redis/redigo"
redigolib "github.com/gomodule/redigo/redis"
"net/url"
"strconv"
"strings"
"time"
"github.com/go-redsync/redsync/v4"
"github.com/go-redsync/redsync/v4/redis/redigo"
redigolib "github.com/gomodule/redigo/redis"
)
// redisBackend represents a redis handler.
+4 -3
View File
@@ -1,14 +1,15 @@
package test
import (
"github.com/sot-tech/mochi/bittorrent"
"github.com/sot-tech/mochi/pkg/rand_seed"
"github.com/sot-tech/mochi/storage"
"math/rand"
"net"
"runtime"
"sync/atomic"
"testing"
"github.com/sot-tech/mochi/bittorrent"
"github.com/sot-tech/mochi/pkg/rand_seed"
"github.com/sot-tech/mochi/storage"
)
type benchData struct {
+2 -1
View File
@@ -1,10 +1,11 @@
package test
import (
"testing"
"github.com/sot-tech/mochi/bittorrent"
"github.com/sot-tech/mochi/storage"
"github.com/stretchr/testify/require"
"testing"
)
// PeerEqualityFunc is the boolean function to use to check two Peers for
+2 -1
View File
@@ -1,8 +1,9 @@
package test
import (
"github.com/sot-tech/mochi/bittorrent"
"net"
"github.com/sot-tech/mochi/bittorrent"
)
var (