From df4cb56c8996c3e7c52db3316f4bbe863f540281 Mon Sep 17 00:00:00 2001 From: David Janowski Date: Mon, 8 Jul 2024 15:16:59 +0200 Subject: [PATCH] feat: updated module name --- go.mod | 2 +- pkg/plug/grpc.go | 2 +- pkg/plug/server.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 1330ee8..32c2028 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.dragse.it/anthrove/plug-sdk +module git.dragse.it/anthrove/plug-sdk/v2 go 1.22.0 diff --git a/pkg/plug/grpc.go b/pkg/plug/grpc.go index 18fb5e0..0772010 100644 --- a/pkg/plug/grpc.go +++ b/pkg/plug/grpc.go @@ -8,7 +8,7 @@ import ( "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" "google.golang.org/protobuf/types/known/timestamppb" - gRPC "git.dragse.it/anthrove/plug-sdk/pkg/grpc" + gRPC "git.dragse.it/anthrove/plug-sdk/v2/pkg/grpc" gonanoid "github.com/matoous/go-nanoid/v2" ) diff --git a/pkg/plug/server.go b/pkg/plug/server.go index a7ddf55..8f9ac15 100644 --- a/pkg/plug/server.go +++ b/pkg/plug/server.go @@ -9,7 +9,7 @@ import ( "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/database" "git.dragse.it/anthrove/otter-space-sdk/v2/pkg/models" - pb "git.dragse.it/anthrove/plug-sdk/pkg/grpc" + pb "git.dragse.it/anthrove/plug-sdk/v2/pkg/grpc" "google.golang.org/grpc" ) @@ -44,14 +44,14 @@ func (p *Plug) Listen() error { } if plugSource == nil { - log.Printf("no source found for domain %p, initilazing source!", p.source.Domain) + log.Printf("no source found for domain %s, initilazing source!", p.source.Domain) err := p.database.CreateSource(p.ctx, &p.source) if err != nil { return err } } - lis, err := net.Listen("tcp", fmt.Sprintf("%p:%p", p.address, p.port)) + lis, err := net.Listen("tcp", fmt.Sprintf("%s:%s", p.address, p.port)) if err != nil { return err }