Skip to content

Commit

Permalink
fix some code
Browse files Browse the repository at this point in the history
Signed-off-by: wbc6080 <[email protected]>
  • Loading branch information
wbc6080 committed May 9, 2024
1 parent 3e8e37d commit 8859d2f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion mappers/kubeedge-v1.17.0/onvif-mapper/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ func main() {

if c, err = config.Parse(); err != nil {
klog.Fatal(err)
os.Exit(1)
}
klog.Infof("config: %+v", c)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ func (d *DataBaseConfig) InitDbClient() error {
if err != nil {
klog.Errorf("init redis database failed, err = %v", err)
return err
} else {
klog.V(1).Infof("init redis database successfully, with return cmd %s", pong)
}
klog.V(1).Infof("init redis database successfully, with return cmd %s", pong)
return nil
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@ func (d *DataBaseConfig) InitDbClient() error {
DB, err = sql.Open("taosRestful", dsn)
if err != nil {
klog.Errorf("init TDEngine db fail, err= %v:", err)
} else {
klog.V(1).Infof("init TDEngine database successfully")
}
klog.V(1).Infof("init TDEngine database successfully")
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion mappers/kubeedge-v1.17.0/onvif-mapper/resource/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: mysecret
type: Opaque
data:
password: MTIzNDU2 # Fill in based on your camera user password, the default is 123456
password: YOUR_PASSWORD # Fill in based on your camera user password, base64 encryption is required

0 comments on commit 8859d2f

Please sign in to comment.