You've already forked reloading-manager
fix tpyo (#8)
Reviewed-on: Siteworxpro/reloading-manager#8 Co-authored-by: Ron Rise <ron@siteworxpro.com> Co-committed-by: Ron Rise <ron@siteworxpro.com>
This commit was merged in pull request #8.
This commit is contained in:
@@ -66,7 +66,9 @@ type ResultChan[T any] struct {
|
||||
|
||||
func Post(c echo.Context) error {
|
||||
db := c.(*database.CustomContext).Db
|
||||
defer db.Db.Close(context.Background())
|
||||
defer func() {
|
||||
_ = db.Db.Close(context.Background())
|
||||
}()
|
||||
|
||||
cartridgeID, err := handlers.ParseUuid(c.FormValue("cartridge_id"))
|
||||
if err != nil {
|
||||
@@ -136,7 +138,6 @@ func Post(c echo.Context) error {
|
||||
}
|
||||
|
||||
func Get(c echo.Context) error {
|
||||
|
||||
id := c.Param("id")
|
||||
cResults := make(chan ResultChan[[]loadResponseResults])
|
||||
|
||||
@@ -182,7 +183,6 @@ func Get(c echo.Context) error {
|
||||
} else {
|
||||
ch <- ResultChan[int64]{Result: total}
|
||||
}
|
||||
|
||||
}(cTotal)
|
||||
go execResultsQuery(cResults, c)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user