Unverified Commit 4e1e573c authored by Hong Minhee's avatar Hong Minhee
Browse files

Fix misleading forceFlush() comment

The comment incorrectly stated the implementation is synchronous.
The actual reason for no-op is that we write directly to KvStore
without buffering, not that it's synchronous.

https://github.com/fedify-dev/fedify/pull/502#discussion_r2642988524
parent be8654c4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -575,10 +575,10 @@ export class FedifySpanExporter implements SpanExporter {

  /**
   * Forces the exporter to flush any buffered data.
   * This implementation is synchronous, so this is a no-op.
   * This is a no-op because we write directly to the KvStore without buffering.
   */
  async forceFlush(): Promise<void> {
    // No-op: data is written synchronously
    // No-op: data is written directly to KvStore without buffering
  }

  /**