Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/coveo/pushapiclient/StreamService.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public StreamService(StreamEnabledSource source) {
* @throws IOException
*/
public void add(DocumentBuilder document) throws IOException, InterruptedException {
this.service.add(document);
this.streamId = this.service.add(document);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ public StreamServiceInternal(
this.platformClient = platformClient;
}

public void add(DocumentBuilder document) throws IOException, InterruptedException {
public String add(DocumentBuilder document) throws IOException, InterruptedException {
if (this.streamId == null) {
this.streamId = this.getStreamId();
}
queue.add(document);
return this.streamId;
}

public HttpResponse<String> close()
Expand Down