Skip to content

Commit 5dc0af0

Browse files
author
Sean Sullivan
committed
Use the config hostname instead of querying the socket
1 parent 692ea3a commit 5dc0af0

File tree

1 file changed

+1
-2
lines changed
  • elastic_datashader/routers

1 file changed

+1
-2
lines changed

elastic_datashader/routers/tms.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from datetime import datetime, timezone
22
from os import getpid
3-
from socket import gethostname
43
from typing import Optional
54
import time
65
import uuid
@@ -111,7 +110,7 @@ def create_datashader_tiles_entry(es, **kwargs) -> None:
111110
'''
112111
doc_info = {
113112
**kwargs,
114-
'host': gethostname(),
113+
'host': config.hostname,
115114
'pid': getpid(),
116115
'timestamp': datetime.now(timezone.utc),
117116
}

0 commit comments

Comments
 (0)