X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b2d825bd6059d843b1ae1917ff22e4de3cfc4f5a..e17cd76f84c85ea408bf727165b713ca8de2ace5:/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