[VOL-5054] - Triage build for voltha-openolt-adapter
VERSION
cmd/openolt-adapter/main.go
cmd/openolt-adapter/main_test.go
internal/pkg/olterrors/common.go
--------------------------------
o Cosmetic edits to force a build.
o Run gofmt -s -w to correct a few syntax problems that failed the job earlier.
Change-Id: I3b525489be01b4e968d163b8835534d683bf1722
diff --git a/VERSION b/VERSION
index bbdf097..e8fc584 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-4.3.5
\ No newline at end of file
+4.3.5.1-dev
diff --git a/cmd/openolt-adapter/main.go b/cmd/openolt-adapter/main.go
index 336d36c..a01976a 100644
--- a/cmd/openolt-adapter/main.go
+++ b/cmd/openolt-adapter/main.go
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-//Package main invokes the application
+// Package main invokes the application
package main
import (
@@ -194,7 +194,8 @@
return core_service.NewCoreServiceClient(conn)
}
-/**
+/*
+*
This function checks the liveliness and readiness of the kakfa and kv-client services
and update the status in the probe.
*/
@@ -206,7 +207,8 @@
go a.checkKvStoreReadiness(ctx)
}
-/**
+/*
+*
This function checks the liveliness and readiness of the kv-store service
and update the status in the probe.
*/
@@ -560,3 +562,5 @@
elapsed := time.Since(start)
logger.Infow(ctx, "run-time", log.Fields{"instanceId": ad.config.InstanceID, "time": elapsed / time.Second})
}
+
+// [EOF]
diff --git a/cmd/openolt-adapter/main_test.go b/cmd/openolt-adapter/main_test.go
index 3d5bcb4..378f885 100644
--- a/cmd/openolt-adapter/main_test.go
+++ b/cmd/openolt-adapter/main_test.go
@@ -1,17 +1,17 @@
/*
- * Copyright 2018-2023 Open Networking Foundation (ONF) and the ONF Contributors
+* Copyright 2018-2023 Open Networking Foundation (ONF) and the ONF Contributors
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
+* http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
*/
package main
@@ -144,3 +144,5 @@
})
}
}
+
+// [EOF]
diff --git a/internal/pkg/olterrors/common.go b/internal/pkg/olterrors/common.go
index 6726ed0..0921043 100644
--- a/internal/pkg/olterrors/common.go
+++ b/internal/pkg/olterrors/common.go
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-//Package olterrors Common Logger initialization
+// Package olterrors Common Logger initialization
package olterrors
import (
@@ -31,3 +31,5 @@
panic(err)
}
}
+
+// [EOF]