Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.
Prev Previous commit
rename hint
  • Loading branch information
marandaneto committed Sep 2, 2020
commit c40767aa5fc24dcf465634c5ba6bfc826f13924e
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void processDirectory(final @NotNull File directory) {

logger.log(SentryLevel.DEBUG, "Processing file: %s", file.getAbsolutePath());

final SendCachedEventHint hint = new SendCachedEventHint(flushTimeoutMillis, logger);
final SendCachedEnvelopeHint hint = new SendCachedEnvelopeHint(flushTimeoutMillis, logger);
processFile(file, hint);
}
} catch (Exception e) {
Expand All @@ -74,7 +74,7 @@ public void processDirectory(final @NotNull File directory) {

protected abstract boolean isRelevantFileName(String fileName);

private static final class SendCachedEventHint
private static final class SendCachedEnvelopeHint
implements Cached, Retryable, SubmissionResult, Flushable {
boolean retry = false;
boolean succeeded = false;
Expand All @@ -83,7 +83,7 @@ private static final class SendCachedEventHint
private final long flushTimeoutMillis;
private final @NotNull ILogger logger;

public SendCachedEventHint(final long flushTimeoutMillis, final @NotNull ILogger logger) {
public SendCachedEnvelopeHint(final long flushTimeoutMillis, final @NotNull ILogger logger) {
this.flushTimeoutMillis = flushTimeoutMillis;
this.latch = new CountDownLatch(1);
this.logger = logger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void store(final @NotNull SentryEnvelope envelope, final @Nullable Object
}
updateCurrentSession(currentSessionFile, envelope);
}

// TODO: problem we need to update the current session file
final File envelopeFile = getEnvelopeFile(envelope);
if (envelopeFile.exists()) {
options
Expand Down