mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-07-06 10:49:31 +00:00
chore: rename module path to logos-delivery-go-bindings
The module path still read `logos-messaging-go-bindings`, mismatching the repository name. Rename it to `github.com/logos-messaging/logos-delivery-go-bindings` and update all in-repo imports. gofmt re-sorts a few import blocks as a result (plus two files that were already unformatted on master). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ac6f8a5096
commit
cf3f6715d0
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module github.com/logos-messaging/logos-messaging-go-bindings
|
||||
module github.com/logos-messaging/logos-delivery-go-bindings
|
||||
|
||||
go 1.24.0
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ import (
|
||||
"os"
|
||||
"runtime"
|
||||
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/utils"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/utils"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@ -75,4 +75,3 @@ func GetRSSKB() (uint64, error) {
|
||||
pageSize := os.Getpagesize()
|
||||
return (rssPages * uint64(pageSize)) / 1024, nil
|
||||
}
|
||||
|
||||
|
||||
@ -3,7 +3,7 @@ package common
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/pb"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/pb"
|
||||
)
|
||||
|
||||
// Envelope contains information about the pubsub topic of a WakuMessage
|
||||
|
||||
@ -4,7 +4,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/common"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/common"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
@ -29,7 +29,7 @@ func TestBasicWakuNodes(t *testing.T) {
|
||||
Debug("TestBasicWakuNodes completed successfully")
|
||||
}
|
||||
|
||||
/* artifact https://github.com/logos-messaging/logos-messaging-go-bindings/issues/40 */
|
||||
/* artifact https://github.com/logos-messaging/logos-delivery-go-bindings/issues/40 */
|
||||
func TestNodeRestart(t *testing.T) {
|
||||
t.Skip("Skipping test for open artifact ")
|
||||
Debug("Starting TestNodeRestart")
|
||||
|
||||
@ -352,17 +352,17 @@ import (
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/timesource"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/timesource"
|
||||
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||
"github.com/libp2p/go-libp2p/core/peer"
|
||||
libp2pproto "github.com/libp2p/go-libp2p/core/protocol"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/pb"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/utils"
|
||||
"github.com/multiformats/go-multiaddr"
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/pb"
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/utils"
|
||||
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/common"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/common"
|
||||
)
|
||||
|
||||
const requestTimeout = 30 * time.Second
|
||||
|
||||
@ -13,11 +13,11 @@ import (
|
||||
|
||||
"github.com/cenkalti/backoff/v3"
|
||||
"github.com/libp2p/go-libp2p/core/peer"
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/common"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/common"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/pb"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/store"
|
||||
ma "github.com/multiformats/go-multiaddr"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/pb"
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/store"
|
||||
)
|
||||
|
||||
// In order to run this test, you must run an nwaku node
|
||||
|
||||
@ -16,9 +16,9 @@ import (
|
||||
|
||||
"github.com/cenkalti/backoff/v3"
|
||||
"github.com/libp2p/go-libp2p/core/peer"
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/utils"
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/common"
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/pb"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/utils"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/common"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/pb"
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/common"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/common"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
|
||||
@ -7,9 +7,9 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/cenkalti/backoff/v3"
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/common"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/common"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/pb"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/pb"
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
|
||||
@ -6,10 +6,10 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/cenkalti/backoff/v3"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/pb"
|
||||
"github.com/stretchr/testify/require"
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/pb"
|
||||
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/common"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/common"
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/common"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/common"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
// "go.uber.org/zap/zapcore"
|
||||
|
||||
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/logos-messaging/logos-messaging-go-bindings/waku/common"
|
||||
"github.com/logos-messaging/logos-delivery-go-bindings/waku/common"
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
|
||||
@ -8,15 +8,15 @@ import (
|
||||
)
|
||||
|
||||
func GetRSSKB() (uint64, error) {
|
||||
var m runtime.MemStats
|
||||
runtime.ReadMemStats(&m)
|
||||
return m.Sys / 1024, nil
|
||||
var m runtime.MemStats
|
||||
runtime.ReadMemStats(&m)
|
||||
return m.Sys / 1024, nil
|
||||
}
|
||||
|
||||
func EncapsulatePeerID(p peer.ID, addrs ...multiaddr.Multiaddr) []multiaddr.Multiaddr {
|
||||
encapsulated := make([]multiaddr.Multiaddr, 0, len(addrs))
|
||||
for _, addr := range addrs {
|
||||
encapsulated = append(encapsulated, addr.Encapsulate(multiaddr.StringCast("/p2p/" + p.String())))
|
||||
encapsulated = append(encapsulated, addr.Encapsulate(multiaddr.StringCast("/p2p/"+p.String())))
|
||||
}
|
||||
return encapsulated
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user