Skip to content

Commit

Permalink
fix(core): daemon server should reinitialize file hashes on each conn…
Browse files Browse the repository at this point in the history
…ection
  • Loading branch information
JamesHenry authored and vsavkin committed Sep 15, 2021
1 parent 36facd8 commit 5cce731
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/workspace/src/core/project-graph/daemon/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { connect, createServer, Server } from 'net';
import { platform } from 'os';
import { join, resolve } from 'path';
import { performance, PerformanceObserver } from 'perf_hooks';
import { defaultFileHasher } from '../../hasher/file-hasher';
import { createProjectGraph } from '../project-graph';

/**
Expand Down Expand Up @@ -81,6 +82,8 @@ const server = createServer((socket) => {
performance.mark('server-connection');
serverLog('Connection Received');

defaultFileHasher.init();

const projectGraph = createProjectGraph(
undefined,
undefined,
Expand Down

0 comments on commit 5cce731

Please sign in to comment.