From 843eaf51f9abb930d35c589d75791d551f57897b Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Sat, 6 Jun 2020 14:47:56 +0200 Subject: [PATCH] always use amarula ad --- webcontroller/file_viewer.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/webcontroller/file_viewer.go b/webcontroller/file_viewer.go index 24c146f..3169eb4 100644 --- a/webcontroller/file_viewer.go +++ b/webcontroller/file_viewer.go @@ -3,7 +3,6 @@ package webcontroller import ( "fmt" "io/ioutil" - "math/rand" "mime" "net/http" "strconv" @@ -33,14 +32,14 @@ func adType() (i int) { // Intn returns a number up to n, but never n itself. So it get a random 0 // or 1 we need to give it n=2. We can use this function to make other // splits like 1/3 1/4, etc - i = rand.Intn(2) + // i = rand.Intn(2) - switch { - case i == 1: // 50% of the traffic - return 1 // Amarula - default: - return 0 // A-Ads - } + // switch { + // case i == 1: // 50% of the traffic + return 1 // Amarula + // default: + // return 0 // A-Ads + // } } type viewerData struct {