Skip to content

Commit

Permalink
refactor(rstream-log): use rstream nextID() util (fix regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jan 7, 2019
1 parent b31065b commit 3e1467f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rstream-log/src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { illegalArity } from "@thi.ng/errors/illegal-arity";
import { ISubscribable } from "@thi.ng/rstream/api";
import { StreamMerge } from "@thi.ng/rstream/stream-merge";
import { Subscription } from "@thi.ng/rstream/subscription";
import { nextID } from "@thi.ng/rstream/utils/idgen";

import { ILogger, Level, LogEntry } from "./api";

Expand Down Expand Up @@ -34,7 +34,7 @@ export class Logger extends StreamMerge<LogEntry, LogEntry> implements
default:
illegalArity(args.length);
}
id = id || `logger-${Subscription.NEXT_ID++}`;
id = id || `logger-${nextID()}`;
super({ src, id, close: false });
this.level = level;
}
Expand Down

0 comments on commit 3e1467f

Please sign in to comment.