derElektrobesen/goconnpool

View on GitHub
server.go

Summary

Maintainability
A
0 mins
Test Coverage

Method server.getConnection has 6 return statements (exceeds 4 allowed).
Invalid

func (s *server) getConnection(ctx context.Context) (Conn, error) {
    s.mu.Lock()
    defer s.mu.Unlock()

    if !s.updateLastUsage() {
Severity: Major
Found in server.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status