fix: golangci-lint and gosec warnings
This commit is contained in:
		@@ -6,6 +6,7 @@ import (
 | 
			
		||||
	"net/url"
 | 
			
		||||
	"os"
 | 
			
		||||
	"os/signal"
 | 
			
		||||
	"syscall"
 | 
			
		||||
 | 
			
		||||
	"git.cryptic.systems/volker.raschek/flucky/pkg/config"
 | 
			
		||||
	"git.cryptic.systems/volker.raschek/flucky/pkg/repository"
 | 
			
		||||
@@ -15,7 +16,6 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func Start(cnf *config.Config, cachedEntries uint, flogger logger.Logger) error {
 | 
			
		||||
 | 
			
		||||
	// load data source name (dsn)
 | 
			
		||||
	dsnURL, err := url.Parse(cnf.DSN)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
@@ -79,7 +79,7 @@ func Start(cnf *config.Config, cachedEntries uint, flogger logger.Logger) error
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	interruptChannel := make(chan os.Signal, 1)
 | 
			
		||||
	signal.Notify(interruptChannel, os.Interrupt, os.Kill)
 | 
			
		||||
	signal.Notify(interruptChannel, syscall.SIGTERM)
 | 
			
		||||
 | 
			
		||||
	// Collection
 | 
			
		||||
	parentCtx := context.Background()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user