Compare commits
No commits in common. "7a508ece7e335039bc30b7421859aa2964452c40" and "9f873ef0e403de18b608dba37642a4dcc04c6375" have entirely different histories.
7a508ece7e
...
9f873ef0e4
@ -29,7 +29,7 @@ jobs:
|
||||
cache: true # optional
|
||||
|
||||
- name: Execute Go Test files with coverage report
|
||||
run: go test -v ./... -json -coverprofile="coverage.out" | tee "test-report.out"
|
||||
run: TESTCONTAINERS_RYUK_DISABLED=true go test -v ./... -json -coverprofile="coverage.out" | tee "test-report.out"
|
||||
|
||||
- uses: sonarsource/sonarqube-scan-action@master
|
||||
env:
|
||||
|
4
go.mod
4
go.mod
@ -1,4 +1,4 @@
|
||||
module git.dragse.it/anthrove/plug-sdk/v2
|
||||
module git.dragse.it/anthrove/plug-sdk
|
||||
|
||||
go 1.22.0
|
||||
|
||||
@ -7,7 +7,7 @@ require (
|
||||
github.com/golang/protobuf v1.5.4
|
||||
github.com/matoous/go-nanoid/v2 v2.1.0
|
||||
google.golang.org/grpc v1.61.1
|
||||
google.golang.org/protobuf v1.34.2
|
||||
google.golang.org/protobuf v1.33.0
|
||||
)
|
||||
|
||||
require (
|
||||
|
4
go.sum
4
go.sum
@ -149,8 +149,8 @@ google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 h1:
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17/go.mod h1:oQ5rr10WTTMvP4A36n8JpR1OrO1BEiV4f78CneXZxkA=
|
||||
google.golang.org/grpc v1.61.1 h1:kLAiWrZs7YeDM6MumDe7m3y4aM6wacLzM1Y/wiLP9XY=
|
||||
google.golang.org/grpc v1.61.1/go.mod h1:VUbo7IFqmF1QtCAstipjG0GIoq49KvMe9+h1jFLBNJs=
|
||||
google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg=
|
||||
google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=
|
||||
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
|
||||
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
|
||||
|
@ -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/v2/pkg/grpc"
|
||||
gRPC "git.dragse.it/anthrove/plug-sdk/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/v2/pkg/grpc"
|
||||
pb "git.dragse.it/anthrove/plug-sdk/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 %s, initilazing source!", p.source.Domain)
|
||||
log.Printf("no source found for domain %p, 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("%s:%s", p.address, p.port))
|
||||
lis, err := net.Listen("tcp", fmt.Sprintf("%p:%p", p.address, p.port))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user