feat: updated module name

This commit is contained in:
David Janowski 2024-07-08 15:16:59 +02:00
parent b8b80d1be9
commit df4cb56c89
3 changed files with 5 additions and 5 deletions

2
go.mod
View File

@ -1,4 +1,4 @@
module git.dragse.it/anthrove/plug-sdk
module git.dragse.it/anthrove/plug-sdk/v2
go 1.22.0

View File

@ -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"
)

View File

@ -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
}