Skip to content
Snippets Groups Projects
Commit a144ec13 authored by Wolfgang Welz's avatar Wolfgang Welz
Browse files

Format imports

parent 98ac2561
No related branches found
No related tags found
No related merge requests found
Showing
with 38 additions and 44 deletions
package database
import (
"github.com/iotaledger/hive.go/parameter"
"os"
"sync"
"github.com/dgraph-io/badger"
"github.com/dgraph-io/badger/options"
"github.com/iotaledger/hive.go/parameter"
"github.com/pkg/errors"
)
......
package client
import (
"github.com/iotaledger/hive.go/parameter"
"net"
"time"
......@@ -19,6 +18,7 @@ import (
"github.com/iotaledger/goshimmer/plugins/autopeering/instances/knownpeers"
"github.com/iotaledger/goshimmer/plugins/autopeering/types/peer"
"github.com/iotaledger/hive.go/events"
"github.com/iotaledger/hive.go/parameter"
)
func Run(plugin *node.Plugin) {
......
......@@ -2,6 +2,8 @@ package server
import (
"encoding/hex"
"math"
"github.com/iotaledger/goshimmer/packages/daemon"
"github.com/iotaledger/goshimmer/packages/network"
"github.com/iotaledger/goshimmer/packages/network/tcp"
......@@ -14,7 +16,6 @@ import (
"github.com/iotaledger/hive.go/events"
"github.com/iotaledger/hive.go/parameter"
"github.com/pkg/errors"
"math"
)
var server *tcp.Server
......
......@@ -2,16 +2,16 @@ package entrynodes
import (
"encoding/hex"
"github.com/iotaledger/goshimmer/plugins/autopeering/parameters"
"github.com/iotaledger/hive.go/parameter"
"net"
"strconv"
"strings"
"github.com/iotaledger/goshimmer/packages/identity"
"github.com/iotaledger/goshimmer/packages/node"
"github.com/iotaledger/goshimmer/plugins/autopeering/parameters"
"github.com/iotaledger/goshimmer/plugins/autopeering/types/peer"
"github.com/iotaledger/goshimmer/plugins/autopeering/types/peerlist"
"github.com/iotaledger/hive.go/parameter"
)
var INSTANCE *peerlist.PeerList
......
package ownpeer
import (
"github.com/iotaledger/hive.go/parameter"
"net"
"github.com/iotaledger/goshimmer/packages/accountability"
......@@ -10,6 +9,7 @@ import (
"github.com/iotaledger/goshimmer/plugins/autopeering/saltmanager"
"github.com/iotaledger/goshimmer/plugins/autopeering/types/peer"
"github.com/iotaledger/goshimmer/plugins/gossip"
"github.com/iotaledger/hive.go/parameter"
)
var INSTANCE *peer.Peer
......
package protocol
import (
"github.com/iotaledger/hive.go/parameter"
"math/rand"
"github.com/iotaledger/goshimmer/plugins/autopeering/parameters"
"github.com/iotaledger/goshimmer/packages/node"
"github.com/iotaledger/goshimmer/plugins/autopeering/instances/acceptedneighbors"
"github.com/iotaledger/goshimmer/plugins/autopeering/instances/knownpeers"
"github.com/iotaledger/goshimmer/plugins/autopeering/instances/neighborhood"
"github.com/iotaledger/goshimmer/plugins/autopeering/parameters"
"github.com/iotaledger/goshimmer/plugins/autopeering/protocol/constants"
"github.com/iotaledger/goshimmer/plugins/autopeering/types/peer"
"github.com/iotaledger/goshimmer/plugins/autopeering/types/peerlist"
"github.com/iotaledger/goshimmer/plugins/autopeering/types/request"
"github.com/iotaledger/hive.go/events"
"github.com/iotaledger/hive.go/parameter"
)
func createIncomingRequestProcessor(plugin *node.Plugin) *events.Closure {
......
package udp
import (
"math"
"net"
"github.com/iotaledger/goshimmer/packages/daemon"
"github.com/iotaledger/goshimmer/packages/network/udp"
"github.com/iotaledger/goshimmer/packages/node"
......@@ -12,8 +15,6 @@ import (
"github.com/iotaledger/hive.go/events"
"github.com/iotaledger/hive.go/parameter"
"github.com/pkg/errors"
"math"
"net"
)
var udpServer = udp.NewServer(int(math.Max(float64(request.MARSHALED_TOTAL_SIZE), float64(response.MARSHALED_TOTAL_SIZE))))
......
package bundleprocessor
import (
"github.com/iotaledger/hive.go/parameter"
"os"
"sync"
"testing"
"github.com/iotaledger/goshimmer/packages/client"
"github.com/iotaledger/goshimmer/packages/model/bundle"
"github.com/iotaledger/goshimmer/packages/model/value_transaction"
"github.com/iotaledger/hive.go/events"
"github.com/iotaledger/goshimmer/plugins/tipselection"
"github.com/iotaledger/goshimmer/packages/client"
"github.com/iotaledger/goshimmer/packages/node"
"github.com/iotaledger/goshimmer/plugins/tangle"
"github.com/iotaledger/goshimmer/plugins/tipselection"
"github.com/iotaledger/hive.go/events"
"github.com/iotaledger/hive.go/parameter"
"github.com/iotaledger/iota.go/consts"
"github.com/magiconair/properties/assert"
)
......
......@@ -7,9 +7,8 @@ import (
"sort"
"strings"
flag "github.com/spf13/pflag"
"github.com/iotaledger/goshimmer/packages/node"
flag "github.com/spf13/pflag"
)
var enabledPlugins []string
......@@ -44,5 +43,5 @@ func printUsage() {
fmt.Fprintf(os.Stderr, "\nThe following plugins are enabled by default and can be disabled with -%s:\n %s\n", node.CFG_DISABLE_PLUGINS, getList(enabledPlugins))
fmt.Fprintf(os.Stderr, "The following plugins are disabled by default and can be enabled with -%s:\n %s\n", node.CFG_ENABLE_PLGUINS, getList(disabledPlugins))
fmt.Fprintf(os.Stderr, "The enabled/disabled plugins can be overriden by altering %s/%s inside config.json\n\n", node.CFG_ENABLE_PLGUINS, node.CFG_DISABLE_PLUGINS)
fmt.Fprintf(os.Stderr, "The enabled/disabled plugins can be overridden by altering %s/%s inside config.json\n\n", node.CFG_ENABLE_PLGUINS, node.CFG_DISABLE_PLUGINS)
}
......@@ -4,11 +4,10 @@ import (
"fmt"
"strings"
"github.com/iotaledger/hive.go/events"
flag "github.com/spf13/pflag"
"github.com/iotaledger/goshimmer/packages/node"
"github.com/iotaledger/hive.go/events"
"github.com/iotaledger/hive.go/parameter"
flag "github.com/spf13/pflag"
)
const (
......
package tangle
import (
"github.com/iotaledger/hive.go/parameter"
"os"
"sync"
"testing"
......@@ -10,6 +9,7 @@ import (
"github.com/iotaledger/goshimmer/packages/node"
"github.com/iotaledger/goshimmer/plugins/gossip"
"github.com/iotaledger/hive.go/events"
"github.com/iotaledger/hive.go/parameter"
"github.com/iotaledger/iota.go/trinary"
)
......
......@@ -992,5 +992,4 @@ function debounce(func, delay) {
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}`,
}
package zeromq
import (
"github.com/iotaledger/hive.go/parameter"
"strconv"
"strings"
"time"
......@@ -11,6 +10,7 @@ import (
"github.com/iotaledger/goshimmer/packages/node"
"github.com/iotaledger/goshimmer/plugins/tangle"
"github.com/iotaledger/hive.go/events"
"github.com/iotaledger/hive.go/parameter"
)
// zeromq logging is disabled by default
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment