Skip to content

Commit

Permalink
remove unused and fix encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
robdefeo committed Dec 18, 2019
1 parent fe38c3a commit eed2b28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
14 changes: 0 additions & 14 deletions cmd/indexer/internal/pq/mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ var protocolUint8 = map[string]uint8{ //nolint:gochecknoglobals
protocols.Ethereum: 1,
}

var uint8Protocol = map[uint8]string{ //nolint:gochecknoglobals
1: protocols.Ethereum,
}

var protocolNetworkUint8 = map[string]map[string]uint8{ //nolint:gochecknoglobals
protocols.Ethereum: {
ethereum.Mainnet: 1,
Expand All @@ -22,13 +18,3 @@ var protocolNetworkUint8 = map[string]map[string]uint8{ //nolint:gochecknoglobal
ethereum.Ropsten: 5,
},
}

var uint8ProtocolNetwork = map[string]map[uint8]string{ //nolint:gochecknoglobals
protocols.Ethereum: {
1: ethereum.Mainnet,
2: ethereum.Goerli,
3: ethereum.Kovan,
4: ethereum.Rinkeby,
5: ethereum.Ropsten,
},
}
2 changes: 1 addition & 1 deletion cmd/indexer/internal/processor/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"context"

"github.com/mailchain/mailchain/cmd/indexer/internal/datastore"
"github.com/mailchain/mailchain/internal/encoding"
"github.com/mailchain/mailchain/encoding"
)

// Transaction processes transactions
Expand Down

0 comments on commit eed2b28

Please sign in to comment.