Skip to content

Commit

Permalink
fix: fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: Jiyong Huang <[email protected]>
  • Loading branch information
ngjaying committed Jan 11, 2023
1 parent 1ef6a9c commit ecd21f2
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions internal/conf/path.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 EMQ Technologies Co., Ltd.
// Copyright 2021-2023 EMQ Technologies Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -73,7 +73,7 @@ func absolutePath(loc string) (dir string, err error) {
}
}
if 0 == len(dir) {
return "", fmt.Errorf("location %s is not allowed for absolue mode", loc)
return "", fmt.Errorf("location %s is not allowed for absolute mode", loc)
}
return dir, nil
}
Expand Down
4 changes: 2 additions & 2 deletions internal/plugin/portable/manager.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021-2022 EMQ Technologies Co., Ltd.
// Copyright 2021-2023 EMQ Technologies Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -333,7 +333,7 @@ func (m *Manager) install(name, src string, shellParas []string) (resultErr erro
if err != nil {
return fmt.Errorf(`err:%v stdout:%s stderr:%s`, err, outb.String(), errb.String())
} else {
conf.Log.Infof(`install script ouput: %s`, outb.String())
conf.Log.Infof(`install script output: %s`, outb.String())
}
}
return m.doRegister(name, pi, false)
Expand Down
4 changes: 2 additions & 2 deletions internal/plugin/portable/runtime/connection_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021-2022 EMQ Technologies Co., Ltd.
// Copyright 2021-2023 EMQ Technologies Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -248,7 +248,7 @@ func (r *mockControlClient) Run() error {
return fmt.Errorf("cannot receive on rep socket: %s", err.Error())
}
if !reflect.DeepEqual(msg, okMsg) {
return fmt.Errorf("control client recieve %s but expect %s", string(msg), string(okMsg))
return fmt.Errorf("control client receive %s but expect %s", string(msg), string(okMsg))
}
err = r.sock.Send(okMsg)
if err != nil {
Expand Down
6 changes: 3 additions & 3 deletions internal/processor/rule.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021-2022 EMQ Technologies Co., Ltd.
// Copyright 2021-2023 EMQ Technologies Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -34,11 +34,11 @@ type RuleProcessor struct {
func NewRuleProcessor() *RuleProcessor {
err, db := store.GetKV("rule")
if err != nil {
panic(fmt.Sprintf("Can not initalize store for the rule processor at path 'rule': %v", err))
panic(fmt.Sprintf("Can not initialize store for the rule processor at path 'rule': %v", err))
}
err, ruleStatusDb := store.GetKV("ruleStatus")
if err != nil {
panic(fmt.Sprintf("Can not initalize store for the rule processor at path 'rule': %v", err))
panic(fmt.Sprintf("Can not initialize store for the rule processor at path 'rule': %v", err))
}
processor := &RuleProcessor{
db: db,
Expand Down
8 changes: 4 additions & 4 deletions internal/processor/stream.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021-2022 EMQ Technologies Co., Ltd.
// Copyright 2021-2023 EMQ Technologies Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -42,15 +42,15 @@ type StreamProcessor struct {
func NewStreamProcessor() *StreamProcessor {
err, db := store.GetKV("stream")
if err != nil {
panic(fmt.Sprintf("Can not initalize store for the stream processor at path 'stream': %v", err))
panic(fmt.Sprintf("Can not initialize store for the stream processor at path 'stream': %v", err))
}
err, streamDb := store.GetKV("streamStatus")
if err != nil {
panic(fmt.Sprintf("Can not initalize store for the stream processor at path 'stream': %v", err))
panic(fmt.Sprintf("Can not initialize store for the stream processor at path 'stream': %v", err))
}
err, tableDb := store.GetKV("tableStatus")
if err != nil {
panic(fmt.Sprintf("Can not initalize store for the stream processor at path 'stream': %v", err))
panic(fmt.Sprintf("Can not initialize store for the stream processor at path 'stream': %v", err))
}
processor := &StreamProcessor{
db: db,
Expand Down
2 changes: 1 addition & 1 deletion internal/server/server.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 EMQ Technologies Co., Ltd.
// Copyright 2022-2023 EMQ Technologies Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions internal/topo/topotest/mocknode/mock_sink.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 EMQ Technologies Co., Ltd.
// Copyright 2021-2023 EMQ Technologies Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -40,7 +40,7 @@ func (m *MockSink) Collect(ctx api.StreamContext, item interface{}) error {
logger.Debugf("mock sink receive %s", item)
m.results = append(m.results, v)
} else {
logger.Info("mock sink tranform data error: %v", err)
logger.Info("mock sink transform data error: %v", err)
}
return nil
}
Expand Down
4 changes: 2 additions & 2 deletions test/plugins/service/server.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 EMQ Technologies Co., Ltd.
// Copyright 2021-2023 EMQ Technologies Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -41,7 +41,7 @@ var count = 0

type Sensor struct {
Temperature int `json: "temperature""`
Humidity int `json: "humidiy"`
Humidity int `json: "humidity"`
}

var s = &Sensor{}
Expand Down

0 comments on commit ecd21f2

Please sign in to comment.