summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-04-24 20:01:55 +0530
committerAndinus <andinus@nand.sh>2020-04-24 20:01:55 +0530
commit76468d2f514677e2f3a490b6b493d32badfca986 (patch)
treee3eac867ba21124aa509a16b903b4c2c1601b684
parente358ce49e011c48cdb65322b789baf6f54c8e495 (diff)
downloadcetus-76468d2f514677e2f3a490b6b493d32badfca986.tar.gz
Add description for unveil()
-rw-r--r--main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.go b/main.go
index dfe208c..66d401f 100644
--- a/main.go
+++ b/main.go
@@ -40,6 +40,16 @@ func main() {
 }
 
 func initCetus() {
+	// We cannot use complex switches here so instead we unveil
+	// everything we need. This is bad but the other way will make
+	// the code too complex, we need a better structure for code.
+	// This also runs UnveilBlock, instead we could remove this
+	// unveil func & inline Unveil calls in other functions, this
+	// way we will only unveil when required.
+	//
+	// This method is still used because in earlier lynx version
+	// we had to manage build flags manually, so keeping
+	// everything in a single func made sense.
 	unveil()
 }