message: Tinylicious: Removed Wrapped Local Orderer
diff: @@ -94,49 +94,6 @@ class LocalPubSub implements IPubSub {
  }
  }
  -class WrappedLocalOrdererSetup implements ILocalOrdererSetup {
  - constructor(
  - private readonly wrapped: ILocalOrdererSetup,
  - private readonly tenantId: string,
  - private readonly documentId: string,
  - ) {
  - }
  -
  - public async documentP(): Promise<IDocumentDetails> {
  - const details = await this.wrapped.documentP();
  -
  - // TODO can remove wrapper once fix bug in local orderer scribe setup which assumes tenantId/documentId
  - // come from saved scribe data rather than on outer document itself.
  - //
  - const scribe = JSON.parse(details.value.scribe);
  - scribe.tenantId = this.tenantId;
  - scribe.documentId = this.documentId;
  - details.value.scribe = JSON.stringify(scribe);
  -
  - return details;
  - }
  -
  - public documentCollectionP(): Promise<ICollection<IDocument>> {
  - return this.wrapped.documentCollectionP();
  - }
  -
  - public deltaCollectionP(): Promise<ICollection<any>> {
  - return this.wrapped.deltaCollectionP();
  - }
  -
  - public scribeDeltaCollectionP(): Promise<ICollection<ISequencedOperationMessage>> {
  - return this.wrapped.scribeDeltaCollectionP();
  - }
  -
  - public protocolHeadP(): Promise<number> {
  - return this.wrapped.protocolHeadP();
  - }
  -
  - public scribeMessagesP(): Promise<ISequencedOperationMessage[]> {
  - return this.wrapped.scribeMessagesP();
  - }
  -}
  -
  export class OrdererManager implements IOrdererManager {
  private readonly map = new Map<string, Promise<IOrderer>>();
  @@ -175,7 +132,6 @@ export class OrdererManager implements IOrdererManager {
  this.storage,
  this.databaseManager,
  gitManager);
  - const wrapped = new WrappedLocalOrdererSetup(localOrdererSetup, tenantId, documentId);
  const orderer = await LocalOrderer.load(
  this.storage,
  @@ -187,7 +143,7 @@ export class OrdererManager implements IOrdererManager {
  this.permission,
  this.maxMessageSize,
  gitManager,
  - wrapped,
  + localOrdererSetup,
  new LocalPubSub(this.io));
  // This is a temporary hack to work around promise bugs in the LocalOrderer load. The LocalOrderer does not
  