Skip to content

Commit

Permalink
fix: fix syntax errors (superedge#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
huweihuang authored Mar 25, 2021
1 parent 7535226 commit 03a34d3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (dgc *DeploymentGridController) reconcile(dg *crdv1.DeploymentGrid, dpList
out, _ := json.Marshal(DeploymentToUpdate.Spec)
klog.V(5).Infof("deploymentToUpdate is %s", string(out))
out, _ = json.Marshal(dp.Spec)
klog.V(5).Info("deployment is %s", string(out))
klog.V(5).Infof("deployment is %s", string(out))
updates = append(updates, DeploymentToUpdate)
continue
}
Expand Down
2 changes: 0 additions & 2 deletions pkg/edgeadm/cmd/revert/revert.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,4 @@ func (r *revertAction) runRevert() error {
default:
return fmt.Errorf("Not support %s change to edge cluster\n", r.deployName)
}

return nil
}
2 changes: 1 addition & 1 deletion pkg/lite-apiserver/cache/cache_mgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func getUserAgent(r *http.Request) string {

func getWatchDecoder(body io.ReadCloser) *restclientwatch.Decoder {
framer := jsonserializer.Framer.NewFrameReader(body)
jsonSerializer := jsonserializer.NewSerializerWithOptions(jsonserializer.DefaultMetaFactory, scheme.Scheme, scheme.Scheme, jsonserializer.SerializerOptions{false, false, false})
jsonSerializer := jsonserializer.NewSerializerWithOptions(jsonserializer.DefaultMetaFactory, scheme.Scheme, scheme.Scheme, jsonserializer.SerializerOptions{Yaml: false, Pretty: false, Strict: false})
streamingDecoder := streaming.NewDecoder(framer, jsonSerializer)
return restclientwatch.NewDecoder(streamingDecoder, unstructured.UnstructuredJSONScheme)
}
Expand Down
11 changes: 0 additions & 11 deletions pkg/tunnel/proxy/tcp/tcp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,6 @@ import (
"testing"
)

package tcp

import (
"github.com/superedge/superedge/pkg/tunnel/conf"
"github.com/superedge/superedge/pkg/tunnel/model"
"github.com/superedge/superedge/pkg/tunnel/proxy/stream"
"github.com/superedge/superedge/pkg/tunnel/util"
"os"
"testing"
)

func Test_TcpServer(t *testing.T) {
err := conf.InitConf(util.CLOUD, "../../../../conf/cloud_mode.toml")
if err != nil {
Expand Down

0 comments on commit 03a34d3

Please sign in to comment.