mirror of
https://github.com/LBRYFoundation/reflector.go.git
synced 2025-08-23 17:27:25 +00:00
new errors.go
This commit is contained in:
parent
3e2db84d2a
commit
32a27c4e4d
11 changed files with 11 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
||||||
package cluster
|
package cluster
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/lbryio/errors.go"
|
"github.com/lbryio/lbry.go/errors"
|
||||||
|
|
||||||
"github.com/hashicorp/serf/serf"
|
"github.com/hashicorp/serf/serf"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
2
db/db.go
2
db/db.go
|
@ -5,7 +5,7 @@ import (
|
||||||
|
|
||||||
"github.com/lbryio/reflector.go/types"
|
"github.com/lbryio/reflector.go/types"
|
||||||
|
|
||||||
"github.com/lbryio/errors.go"
|
"github.com/lbryio/lbry.go/errors"
|
||||||
qtools "github.com/lbryio/query.go"
|
qtools "github.com/lbryio/query.go"
|
||||||
|
|
||||||
_ "github.com/go-sql-driver/mysql"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package peer
|
package peer
|
||||||
|
|
||||||
import "github.com/lbryio/errors.go"
|
import "github.com/lbryio/lbry.go/errors"
|
||||||
|
|
||||||
const maxRequestSize = 64 * (2 ^ 10) // 64kb
|
const maxRequestSize = 64 * (2 ^ 10) // 64kb
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"net"
|
"net"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/lbryio/errors.go"
|
"github.com/lbryio/lbry.go/errors"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
|
|
||||||
"github.com/lbryio/reflector.go/store"
|
"github.com/lbryio/reflector.go/store"
|
||||||
|
|
||||||
"github.com/lbryio/errors.go"
|
"github.com/lbryio/lbry.go/errors"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"crypto/sha512"
|
"crypto/sha512"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
|
|
||||||
"github.com/lbryio/errors.go"
|
"github.com/lbryio/lbry.go/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
"github.com/lbryio/errors.go"
|
"github.com/lbryio/lbry.go/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FileBlobStore struct {
|
type FileBlobStore struct {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package store
|
package store
|
||||||
|
|
||||||
import "github.com/lbryio/errors.go"
|
import "github.com/lbryio/lbry.go/errors"
|
||||||
|
|
||||||
type MemoryBlobStore struct {
|
type MemoryBlobStore struct {
|
||||||
blobs map[string][]byte
|
blobs map[string][]byte
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/lbryio/errors.go"
|
"github.com/lbryio/lbry.go/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMemoryBlobStore_Put(t *testing.T) {
|
func TestMemoryBlobStore_Put(t *testing.T) {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/lbryio/errors.go"
|
"github.com/lbryio/lbry.go/errors"
|
||||||
|
|
||||||
"github.com/aws/aws-sdk-go/aws"
|
"github.com/aws/aws-sdk-go/aws"
|
||||||
"github.com/aws/aws-sdk-go/aws/awserr"
|
"github.com/aws/aws-sdk-go/aws/awserr"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package store
|
package store
|
||||||
|
|
||||||
import "github.com/lbryio/errors.go"
|
import "github.com/lbryio/lbry.go/errors"
|
||||||
|
|
||||||
type BlobStore interface {
|
type BlobStore interface {
|
||||||
Has(string) (bool, error)
|
Has(string) (bool, error)
|
||||||
|
|
Loading…
Add table
Reference in a new issue