Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdihadeli committed Aug 10, 2022
1 parent 576f96b commit f15b0c2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/cqrs/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ package main

import (
"context"
"log"
"os"
"os/signal"
"syscall"

"github.com/mehdihadeli/go-mediatr"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/docs"
productApi "github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/api"
Expand All @@ -12,10 +17,6 @@ import (
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/features/getting_product_by_id/queries"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/products/repository"
"github.com/mehdihadeli/go-mediatr/examples/cqrs/internal/shared/behaviours"
"log"
"os"
"os/signal"
"syscall"

"github.com/labstack/echo/v4"
echoSwagger "github.com/swaggo/echo-swagger"
Expand Down Expand Up @@ -83,6 +84,6 @@ func main() {
<-ctx.Done()

if err := echo.Shutdown(ctx); err != nil {
log.Fatal("(Shutdown) err: {%v}", err)
log.Fatal("(Shutdown) err", err)
}
}

0 comments on commit f15b0c2

Please sign in to comment.