forked from TrueCloudLab/frostfs-s3-gw
*: fix whitespace errors
This commit is contained in:
parent
7ce5b3392f
commit
b851889934
3 changed files with 0 additions and 3 deletions
|
@ -127,7 +127,6 @@ type CopyObjectResponse struct {
|
||||||
|
|
||||||
// MarshalXML - StringMap marshals into XML.
|
// MarshalXML - StringMap marshals into XML.
|
||||||
func (s StringMap) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
func (s StringMap) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||||
|
|
||||||
tokens := []xml.Token{start}
|
tokens := []xml.Token{start}
|
||||||
|
|
||||||
for key, value := range s {
|
for key, value := range s {
|
||||||
|
|
|
@ -21,7 +21,6 @@ func AttachUserAuth(router *mux.Router, center auth.Center, log *zap.Logger) {
|
||||||
|
|
||||||
h.ServeHTTP(w, r.WithContext(
|
h.ServeHTTP(w, r.WithContext(
|
||||||
sdk.SetBearerToken(r.Context(), token)))
|
sdk.SetBearerToken(r.Context(), token)))
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,6 @@ func fetchPeers(l *zap.Logger, v *viper.Viper) map[string]float64 {
|
||||||
peers := make(map[string]float64)
|
peers := make(map[string]float64)
|
||||||
|
|
||||||
for i := 0; ; i++ {
|
for i := 0; ; i++ {
|
||||||
|
|
||||||
key := cfgPeers + "." + strconv.Itoa(i) + "."
|
key := cfgPeers + "." + strconv.Itoa(i) + "."
|
||||||
address := v.GetString(key + "address")
|
address := v.GetString(key + "address")
|
||||||
weight := v.GetFloat64(key + "weight")
|
weight := v.GetFloat64(key + "weight")
|
||||||
|
|
Loading…
Reference in a new issue