Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Nov 12, 2020
1 parent e5c6bd3 commit 6b52fbd
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions api/client/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func defaultServerConfig(t *testing.T) server.Config {
grpcHostAddress := fmt.Sprintf("/ip4/127.0.0.1/tcp/%d", freePort(t))
grpcWebProxyAddress := fmt.Sprintf("127.0.0.1:%d", freePort(t))
gatewayHostAddr := fmt.Sprintf("0.0.0.0:%d", freePort(t))
indexRawJsonHostAddr := fmt.Sprintf("0.0.0.0:%d", freePort(t))
indexRawJSONHostAddr := fmt.Sprintf("0.0.0.0:%d", freePort(t))

repoPath, err := ioutil.TempDir("/tmp/powergate", ".powergate-*")
require.NoError(t, err)
Expand Down Expand Up @@ -51,7 +51,7 @@ func defaultServerConfig(t *testing.T) server.Config {
GrpcWebProxyAddress: grpcWebProxyAddress,
RepoPath: repoPath,
GatewayHostAddr: gatewayHostAddr,
IndexRawJsonHostAddr: indexRawJsonHostAddr,
IndexRawJSONHostAddr: indexRawJSONHostAddr,
MaxMindDBFolder: "../../iplocation/maxmind",
MinerSelector: "reputation",
FFSDealFinalityTimeout: time.Minute * 30,
Expand Down
4 changes: 2 additions & 2 deletions api/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ type Config struct {

GatewayBasePath string
GatewayHostAddr string
IndexRawJsonHostAddr string
IndexRawJSONHostAddr string

MongoURI string
MongoDB string
Expand Down Expand Up @@ -310,7 +310,7 @@ func NewServer(conf Config) (*Server, error) {
return nil, fmt.Errorf("starting GRPC services: %s", err)
}

s.indexServer = startIndexHTTPServer(s, conf.IndexRawJsonHostAddr)
s.indexServer = startIndexHTTPServer(s, conf.IndexRawJSONHostAddr)

log.Info("Starting finished, serving requests")

Expand Down
4 changes: 2 additions & 2 deletions chainsync/chainsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
const (
hcApply = "apply"
// For completeness:
// hcRevert = "revert"
// hcCurrent = "current"
// hcRevert = "revert".
// hcCurrent = "current".
)

// ChainSync provides methods to resolve chain syncing situations.
Expand Down
4 changes: 2 additions & 2 deletions cmd/powd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func configFromFlags() (server.Config, error) {
grpcWebProxyAddr := config.GetString("grpcwebproxyaddr")
gatewayHostAddr := config.GetString("gatewayhostaddr")
gatewayBasePath := config.GetString("gatewaybasepath")
indexRawJsonHostAddr := config.GetString("indexrawjsonhostaddr")
indexRawJSONHostAddr := config.GetString("indexrawjsonhostaddr")
maxminddbfolder := config.GetString("maxminddbfolder")
mongoURI := config.GetString("mongouri")
mongoDB := config.GetString("mongodb")
Expand Down Expand Up @@ -157,7 +157,7 @@ func configFromFlags() (server.Config, error) {

GatewayHostAddr: gatewayHostAddr,
GatewayBasePath: gatewayBasePath,
IndexRawJsonHostAddr: indexRawJsonHostAddr,
IndexRawJSONHostAddr: indexRawJSONHostAddr,

MongoURI: mongoURI,
MongoDB: mongoDB,
Expand Down
2 changes: 1 addition & 1 deletion ffs/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ type AuthEntry struct {
type JobStatus int

const (
// Unspecified indicates a default or empty value
// Unspecified indicates a default or empty value.
Unspecified JobStatus = iota
// Queued indicates the Job is queued in the Scheduler.
Queued
Expand Down
4 changes: 2 additions & 2 deletions reputation/internal/source/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
var (
log = logging.Logger("reputation-source-store")

// ErrAlreadyExists returns when the soure already exists in Store
// ErrAlreadyExists returns when the soure already exists in Store.
ErrAlreadyExists = errors.New("source already exists")
// ErrDoesntExists returns when the source isn't in the Store
// ErrDoesntExists returns when the source isn't in the Store.
ErrDoesntExists = errors.New("source doesn't exist")

baseKey = datastore.NewKey("/reputation/store")
Expand Down
2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const (
EpochDurationSeconds = 30

// MinDealDuration is the minium deal duration accepted in the Filecoin network.
// Original calculation: 180 * EpochsInADay
// Original calculation: 180 * EpochsInADay.
MinDealDuration = 180 * (24 * 60 * 60 / EpochDurationSeconds)

// CidUndef is a magic value to represent an undefined cid as a string.
Expand Down

0 comments on commit 6b52fbd

Please sign in to comment.