File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -265,17 +265,17 @@ func (c *ConnectionConfig) Dsn() string {
265265func (c * ConnectionConfig ) DsnKey () string {
266266 var h maphash.Hash
267267 h .SetSeed (seed )
268- h .WriteString (fmt .Sprintf ("DRIVERKEY:%s" , c .DriverKey ()))
269- h .WriteString (fmt .Sprintf ("DSN:%s" , c .Dsn ()))
268+ _ , _ = h .WriteString (fmt .Sprintf ("DRIVERKEY:%s" , c .DriverKey ()))
269+ _ , _ = h .WriteString (fmt .Sprintf ("DSN:%s" , c .Dsn ()))
270270 return strconv .FormatUint (h .Sum64 (), 10 )
271271}
272272
273273func (c * ConnectionConfig ) DriverKey () string {
274274 var h maphash.Hash
275275 h .SetSeed (seed )
276- h .WriteString (fmt .Sprintf ("PRIVATEIP:%t" , c .PrivateIP .ValueBool ()))
277- h .WriteString (fmt .Sprintf ("PSC:%t" , c .PSC .ValueBool ()))
278- h .WriteString (fmt .Sprintf ("PROXY:%s" , c .Proxy .ValueString ()))
276+ _ , _ = h .WriteString (fmt .Sprintf ("PRIVATEIP:%t" , c .PrivateIP .ValueBool ()))
277+ _ , _ = h .WriteString (fmt .Sprintf ("PSC:%t" , c .PSC .ValueBool ()))
278+ _ , _ = h .WriteString (fmt .Sprintf ("PROXY:%s" , c .Proxy .ValueString ()))
279279
280280 return strconv .FormatUint (h .Sum64 (), 10 )
281281}
You can’t perform that action at this time.
0 commit comments