Skip to content

Commit

Permalink
fix naming for gtbuilder and gtnetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzampolin committed Dec 6, 2024
1 parent 94761aa commit 7e7054f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions gturbine/builder/helpers.go → gturbine/gtbuilder/helpers.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package builder
package gtbuilder

import (
"bytes"
Expand Down Expand Up @@ -50,4 +50,4 @@ func GetChildren(tree *gturbine.Tree, pubKey []byte) []tmconsensus.Validator {
}

return childLayer.Validators[startIdx:endIdx]
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package builder
package gtbuilder

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion gturbine/builder/tree.go → gturbine/gtbuilder/tree.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package builder
package gtbuilder

import (
"crypto/sha256"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package builder
package gtbuilder

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package network
package gtnetwork

import (
"context"
Expand Down Expand Up @@ -135,4 +135,4 @@ func (t *Transport) close() {
l.Close()
}
t.listeners = nil
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package network
package gtnetwork

import (
"net"
Expand Down Expand Up @@ -102,4 +102,4 @@ func TestMultipleHandlers(t *testing.T) {
}
h.mu.Unlock()
}
}
}
6 changes: 3 additions & 3 deletions gturbine/turbine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"time"

"github.com/gordian-engine/gordian/gturbine/gtencoding"
"github.com/gordian-engine/gordian/gturbine/gtnetwork"
"github.com/gordian-engine/gordian/gturbine/gtshredding"
"github.com/gordian-engine/gordian/gturbine/network"
)

type testNode struct {
transport *network.Transport
transport *gtnetwork.Transport
processor *gtshredding.Processor
codec gtencoding.ShardCodec
shredHandler *testShredHandler
Expand Down Expand Up @@ -58,7 +58,7 @@ func (h *testBlockHandler) ProcessBlock(height uint64, blockHash []byte, block [
func newTestNode(t *testing.T, basePort int) *testNode {
encoder := gtencoding.NewBinaryShardCodec()

transport := network.NewTransport(network.Config{
transport := gtnetwork.NewTransport(gtnetwork.Config{
BasePort: basePort,
NumPorts: 10,
})
Expand Down

0 comments on commit 7e7054f

Please sign in to comment.