Skip to content

Commit 97d28d7

Browse files
committed
Take the SessionCreatedEvent class out
1 parent c48126d commit 97d28d7

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.iexec.worker.pubsub;
2+
3+
import lombok.NoArgsConstructor;
4+
5+
/**
6+
* Publish this event when a new STOMP session
7+
* is created to notify subscribers.
8+
*/
9+
@NoArgsConstructor
10+
public class SessionCreatedEvent {
11+
12+
}

src/main/java/com/iexec/worker/pubsub/StompClient.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,4 @@ public void handleTransportError(StompSession session, Throwable exception) {
180180
private class SessionRequestEvent {
181181

182182
}
183-
184-
/**
185-
* Publish this event when a new session
186-
* is created to notify subscribers.
187-
*/
188-
@NoArgsConstructor
189-
public class SessionCreatedEvent {
190-
191-
}
192183
}

src/main/java/com/iexec/worker/pubsub/SubscriptionService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import com.iexec.common.notification.TaskNotification;
99
import com.iexec.worker.config.WorkerConfigurationService;
10-
import com.iexec.worker.pubsub.StompClient.SessionCreatedEvent;
1110

1211
import org.springframework.context.ApplicationEventPublisher;
1312
import org.springframework.context.event.EventListener;

0 commit comments

Comments
 (0)