Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Nguyen authored and iajrz committed Jan 22, 2019
1 parent aa23c1d commit 4cc60f9
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cmd/pocket_core/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"bufio"
"fmt"
"os"

"github.com/pokt-network/pocket-core/config"
"github.com/pokt-network/pocket-core/crypto"
"github.com/pokt-network/pocket-core/logs"
Expand Down
6 changes: 3 additions & 3 deletions const/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package _const

const (
// for centralized dispatcher
DISPATCHGID = "DISPATCH"
DISPATCHIP = "127.0.0.1"
DISPATCHGID = "DISPATCH"
DISPATCHIP = "127.0.0.1"
DISPATCHCLIENTPORT = "8080"
DISPATCHRELAYPORT = "8081"
DISPATCHRELAYPORT = "8081"
)
2 changes: 1 addition & 1 deletion message/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package message

import (
"net"

"github.com/pokt-network/pocket-core/session"
)

Expand Down
2 changes: 1 addition & 1 deletion node/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"io/ioutil"
"sync"

"github.com/pokt-network/pocket-core/types"
)

Expand Down
4 changes: 2 additions & 2 deletions node/live.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package node
import (
"fmt"
"time"

"github.com/pokt-network/pocket-core/const"
"github.com/pokt-network/pocket-core/util"
)
Expand All @@ -12,7 +12,7 @@ func Register() {
if _, err := util.RPCRequest("http://"+_const.DISPATCHIP+":"+_const.DISPATCHCLIENTPORT+"/v1/register", GetSelf(), util.POST); err != nil {
util.ExitGracefully("Error, unable to register node at Pocket Incorporated's Dispatcher")
}
fmt.Println("Node registered successfully " , GetPeerList().M)
fmt.Println("Node registered successfully ", GetPeerList().M)
}

func UnRegister(count int) {
Expand Down
2 changes: 1 addition & 1 deletion node/whitelist.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"io/ioutil"
"sync"

"github.com/pokt-network/pocket-core/config"
"github.com/pokt-network/pocket-core/types"
)
Expand Down
2 changes: 1 addition & 1 deletion rpc/client/live.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package client

import (
"net/http"

"github.com/julienschmidt/httprouter"
"github.com/pokt-network/pocket-core/node"
"github.com/pokt-network/pocket-core/rpc/shared"
Expand Down
8 changes: 4 additions & 4 deletions rpc/client/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
// "ClientRoutes" is a function that returns all of the routes of the API.
func ClientRoutes() shared.Routes {
routes := shared.Routes{
shared.Route{Name:"Register", Method: "POST", Path:"/v1/register", HandlerFunc: Register},
shared.Route{Name:"UnRegister", Method:"POST", Path:"/v1/unregister", HandlerFunc: UnRegister},
shared.Route{Name:"RegisterInfo", Method: "GET", Path:"/v1/register", HandlerFunc: RegisterInfo},
shared.Route{Name:"UnRegisterInfo", Method:"GET", Path:"/v1/unregister", HandlerFunc: UnRegisterInfo},
shared.Route{Name: "Register", Method: "POST", Path: "/v1/register", HandlerFunc: Register},
shared.Route{Name: "UnRegister", Method: "POST", Path: "/v1/unregister", HandlerFunc: UnRegister},
shared.Route{Name: "RegisterInfo", Method: "GET", Path: "/v1/register", HandlerFunc: RegisterInfo},
shared.Route{Name: "UnRegisterInfo", Method: "GET", Path: "/v1/unregister", HandlerFunc: UnRegisterInfo},
shared.Route{Name: "GetClientAPIVersion", Method: "POST", Path: "/v1", HandlerFunc: GetClientAPIVersion},
shared.Route{Name: "GetAccount", Method: "POST", Path: "/v1/account", HandlerFunc: GetAccount},
shared.Route{Name: "IsAccountActive", Method: "POST", Path: "/v1/account/active", HandlerFunc: IsAccountActive},
Expand Down
2 changes: 1 addition & 1 deletion session/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package session

import (
"sync"

"github.com/pokt-network/pocket-core/types"
)

Expand Down
2 changes: 1 addition & 1 deletion session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package session

import (
"sync"

"github.com/pokt-network/pocket-core/types"
)

Expand Down
2 changes: 1 addition & 1 deletion tests/message/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package message
import (
"testing"
"time"

"github.com/pokt-network/pocket-core/message"
"github.com/pokt-network/pocket-core/node"
"github.com/pokt-network/pocket-core/session"
Expand Down
2 changes: 1 addition & 1 deletion tests/rpc/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/pokt-network/pocket-core/rpc/relay"
"github.com/pokt-network/pocket-core/rpc/shared"
"github.com/pokt-network/pocket-core/service"

"io/ioutil"
"log"
"net/http"
Expand Down

0 comments on commit 4cc60f9

Please sign in to comment.