now it builds the request
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -23,13 +23,16 @@ fun Application.module(testing: Boolean = false) {
 | 
			
		||||
        val timestamps = LinkedHashMap<Int, Instant>()
 | 
			
		||||
        val uploaders = LinkedList<Uploader>()
 | 
			
		||||
        val processResults = ProcessResults()
 | 
			
		||||
        var currUploader : Uploader
 | 
			
		||||
        environment.monitor.subscribe(ApplicationStarted) {
 | 
			
		||||
            GlobalScope.launch {
 | 
			
		||||
                println("Starting benchmark")
 | 
			
		||||
                startTime = Instant.now()
 | 
			
		||||
                while (elapsed < targetTime) {
 | 
			
		||||
                    currIter += 1
 | 
			
		||||
                    uploaders.add(Uploader(currIter))
 | 
			
		||||
                    currUploader = Uploader(currIter)
 | 
			
		||||
                    currUploader.buildRequest()
 | 
			
		||||
                    uploaders.add(currUploader)
 | 
			
		||||
                    currTimeStamp = Instant.now()
 | 
			
		||||
                    elapsed = Duration.between(startTime, currTimeStamp)
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user