From e87748d38952303ceddbcfc87742f77dbac5b8bd Mon Sep 17 00:00:00 2001 From: Junxiao Shi Date: Fri, 22 Mar 2019 11:02:39 -0400 Subject: [PATCH] ndn-js: fix MemoryContentCache.storePendingInterest --- types/ndn-js/memory-content-cache.d.ts | 3 +-- types/ndn-js/test/memory-content-cache.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/types/ndn-js/memory-content-cache.d.ts b/types/ndn-js/memory-content-cache.d.ts index 1411bebe08..75c47419c0 100644 --- a/types/ndn-js/memory-content-cache.d.ts +++ b/types/ndn-js/memory-content-cache.d.ts @@ -2,7 +2,6 @@ import { Data } from "./data"; import { Face, ForwardingFlags, InterestFilter, OnInterestCallback } from "./face"; import { Interest } from "./interest"; import { Name } from "./name"; -import { Transport } from "./transport"; export class MemoryContentCache { constructor(face: Face, cleanupIntervalMilliseconds?: number); @@ -15,6 +14,6 @@ export class MemoryContentCache { onDataNotFound?: OnInterestCallback, flags?: ForwardingFlags): void; setInterestFilter(filter: InterestFilter|Name, onDataNotFound?: OnInterestCallback): void; setMinimumCacheLifetime(minimumCacheLifetime: number): void; - storePendingInterest(interest: Interest, transport: Transport): void; + storePendingInterest(interest: Interest, face: Face): void; unregisterAll(): void; } diff --git a/types/ndn-js/test/memory-content-cache.ts b/types/ndn-js/test/memory-content-cache.ts index daa26d4e17..d809b7a442 100644 --- a/types/ndn-js/test/memory-content-cache.ts +++ b/types/ndn-js/test/memory-content-cache.ts @@ -12,4 +12,4 @@ cache.registerPrefix(new ndn.Name("/A"), cache.getStorePendingInterest()); cache.setInterestFilter(new ndn.Name("/A"), cache.getStorePendingInterest()); cache.setMinimumCacheLifetime(5000); -cache.storePendingInterest(new ndn.Interest(), new ndn.UnixTransport()); +cache.storePendingInterest(new ndn.Interest(), face);