1
0
Эх сурвалжийг харах

refactor(vpn): remove unnecessary line

Mustafa Arici 7 жил өмнө
parent
commit
eb561943de
1 өөрчлөгдсөн 4 нэмэгдсэн , 2 устгасан
  1. 4 2
      vpn.go

+ 4 - 2
vpn.go

@@ -55,9 +55,8 @@ var once sync.Once
 
 // Server represents VPN server.
 type Server struct {
-	sync.Mutex
-
 	dbServerModel
+
 	webPort string
 
 	emitToFileFunc     func(path, content string, mode uint) error
@@ -66,6 +65,9 @@ type Server struct {
 }
 
 // TheServer returns a pointer to the server instance.
+//
+// Server instance is a singleton instance that is initialized
+// on the first call made to the TheServer().
 func TheServer() *Server {
 	once.Do(func() {
 		// Initialize the server instance by setting default mockable funcs & attributes.