feat: updated module name
This commit is contained in:
parent
b8b80d1be9
commit
df4cb56c89
2
go.mod
2
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
|
||||
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user