X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9aff8a3624b463d3fd4d9302c4d41c7558df4a13..916ec66d0caeeb37983043810bea22e0bc41751f:/services/ws/event_source.go diff --git a/services/ws/event_source.go b/services/ws/event_source.go index 9acfca50e4..309dab7a40 100644 --- a/services/ws/event_source.go +++ b/services/ws/event_source.go @@ -8,7 +8,6 @@ import ( "context" "database/sql" "strconv" - "strings" "sync" "sync/atomic" "time" @@ -17,21 +16,6 @@ import ( "github.com/lib/pq" ) -type pgConfig map[string]string - -func (c pgConfig) ConnectionString() string { - s := "" - for k, v := range c { - s += k - s += "='" - s += strings.Replace( - strings.Replace(v, `\`, `\\`, -1), - `'`, `\'`, -1) - s += "' " - } - return s -} - type pgEventSource struct { DataSource string MaxOpenConns int