소스 검색

refactor(vpn): remove unnecessary line

Mustafa Arici 7 년 전
부모
커밋
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.