         self.attemptSheduler = attemptSheduler
         self.createTask = createTask
         
-        updateTaskShedulerLimit()
+        updateAttemptShedulerLimit()
     }
     
     public func activate(appId: String, callbacks: SessionCallbacks) throws {

        try attemptSheduler.shedule(attempt: attempt, concurrent: concurrent)
    }
    
    private func updateTaskShedulerLimit() {
        attemptSheduler.setLimit(to: config.limitPerSec)
        
        config.onLimitPerSecChange = { [weak attemptSheduler] newLimit in

    
    public var config: SessionConfig {
        didSet {
            updateAttemptShedulerLimit()
        }
    }
    
