Skip to content

Commit

Permalink
fix(server.go): fix import path for aphgrpc package
Browse files Browse the repository at this point in the history
The import path for the aphgrpc package has been fixed to
"github.com/dictyBase/aphgrpc". This ensures that the correct package is
being imported. Additionally, the grpc_ctxtags and gnats packages have
been imported to be used in the code.
  • Loading branch information
cybersiddhu committed Nov 7, 2023
1 parent 1086cc5 commit 655ebdf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/app/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strconv"
"time"

"github.com/dictyBase/apihelpers/aphgrpc"
"github.com/dictyBase/aphgrpc"
manager "github.com/dictyBase/arangomanager"
"github.com/dictyBase/go-genproto/dictybaseapis/content"
"github.com/dictyBase/modware-content/internal/app/service"
Expand All @@ -17,6 +17,8 @@ import (
"github.com/dictyBase/modware-content/internal/repository"
"github.com/dictyBase/modware-content/internal/repository/arangodb"
grpc_logrus "github.com/grpc-ecosystem/go-grpc-middleware/logging/logrus"
grpc_ctxtags "github.com/grpc-ecosystem/go-grpc-middleware/tags"
gnats "github.com/nats-io/nats.go"
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
"google.golang.org/grpc"
Expand Down Expand Up @@ -139,7 +141,7 @@ func repoAndNatsConn(clt *cli.Context) (*serverParams, error) {
}
msp, err := nats.NewPublisher(
clt.String("nats-host"), clt.String("nats-port"),
gnats.MaxReconnects(-1), gnats.ReconnectWait(waitTime*time.Second),
gnats.MaxReconnects(-1), gnats.ReconnectWait(Timeout*time.Second),
)
if err != nil {
return &serverParams{},
Expand Down

0 comments on commit 655ebdf

Please sign in to comment.