Skip to content

Commit

Permalink
gofmt -s
Browse files Browse the repository at this point in the history
  • Loading branch information
sandyskies committed Dec 3, 2018
1 parent 25c5506 commit 56b8642
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions tars/protocol/res/adminf/AdminF_IF.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,20 +164,20 @@ func (_obj *AdminF) TarsSetTimeout(t int) {
}
func setMap(l int, res *requestf.ResponsePacket, ctx map[string]string, sts map[string]string) {
if l == 1 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
} else if l == 2 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
for k, _ := range sts {
for k := range sts {
delete(sts, k)
}
for k, v := range res.Status {
Expand Down
6 changes: 3 additions & 3 deletions tars/protocol/res/configf/Config_IF.go
Original file line number Diff line number Diff line change
Expand Up @@ -945,20 +945,20 @@ func (_obj *Config) TarsSetTimeout(t int) {
}
func setMap(l int, res *requestf.ResponsePacket, ctx map[string]string, sts map[string]string) {
if l == 1 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
} else if l == 2 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
for k, _ := range sts {
for k := range sts {
delete(sts, k)
}
for k, v := range res.Status {
Expand Down
6 changes: 3 additions & 3 deletions tars/protocol/res/logf/Log_IF.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,20 +257,20 @@ func (_obj *Log) TarsSetTimeout(t int) {
}
func setMap(l int, res *requestf.ResponsePacket, ctx map[string]string, sts map[string]string) {
if l == 1 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
} else if l == 2 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
for k, _ := range sts {
for k := range sts {
delete(sts, k)
}
for k, v := range res.Status {
Expand Down
6 changes: 3 additions & 3 deletions tars/protocol/res/nodef/ServerF_IF.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,20 +203,20 @@ func (_obj *ServerF) TarsSetTimeout(t int) {
}
func setMap(l int, res *requestf.ResponsePacket, ctx map[string]string, sts map[string]string) {
if l == 1 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
} else if l == 2 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
for k, _ := range sts {
for k := range sts {
delete(sts, k)
}
for k, v := range res.Status {
Expand Down
6 changes: 3 additions & 3 deletions tars/protocol/res/notifyf/Notify_IF.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,20 +357,20 @@ func (_obj *Notify) TarsSetTimeout(t int) {
}
func setMap(l int, res *requestf.ResponsePacket, ctx map[string]string, sts map[string]string) {
if l == 1 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
} else if l == 2 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
for k, _ := range sts {
for k := range sts {
delete(sts, k)
}
for k, v := range res.Status {
Expand Down
6 changes: 3 additions & 3 deletions tars/protocol/res/propertyf/PropertyF_IF.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,20 +138,20 @@ func (_obj *PropertyF) TarsSetTimeout(t int) {
}
func setMap(l int, res *requestf.ResponsePacket, ctx map[string]string, sts map[string]string) {
if l == 1 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
} else if l == 2 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
for k, _ := range sts {
for k := range sts {
delete(sts, k)
}
for k, v := range res.Status {
Expand Down
8 changes: 4 additions & 4 deletions tars/protocol/res/queryf/QueryF_IF.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ package queryf

import (
"context"
"github.com/TarsCloud/TarsGo/tars/protocol/res/endpointf"
"fmt"
m "github.com/TarsCloud/TarsGo/tars/model"
"github.com/TarsCloud/TarsGo/tars/protocol/codec"
"github.com/TarsCloud/TarsGo/tars/protocol/res/endpointf"
"github.com/TarsCloud/TarsGo/tars/protocol/res/requestf"
"github.com/TarsCloud/TarsGo/tars/util/current"
"github.com/TarsCloud/TarsGo/tars/util/tools"
Expand Down Expand Up @@ -1162,20 +1162,20 @@ func (_obj *QueryF) TarsSetTimeout(t int) {
}
func setMap(l int, res *requestf.ResponsePacket, ctx map[string]string, sts map[string]string) {
if l == 1 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
} else if l == 2 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
for k, _ := range sts {
for k := range sts {
delete(sts, k)
}
for k, v := range res.Status {
Expand Down
6 changes: 3 additions & 3 deletions tars/protocol/res/statf/StatF_IF.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,20 +247,20 @@ func (_obj *StatF) TarsSetTimeout(t int) {
}
func setMap(l int, res *requestf.ResponsePacket, ctx map[string]string, sts map[string]string) {
if l == 1 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
} else if l == 2 {
for k, _ := range ctx {
for k := range ctx {
delete(ctx, k)
}
for k, v := range res.Context {
ctx[k] = v
}
for k, _ := range sts {
for k := range sts {
delete(sts, k)
}
for k, v := range res.Status {
Expand Down

0 comments on commit 56b8642

Please sign in to comment.